Giter VIP home page Giter VIP logo

fastgrab's Introduction

FastGrab

CircleCI

Fastgrab is an opensouce high frame rate screen capture package. A typical capture frame rate at a resolution of 1080p on a modern machine is ~60 fps. There are several other such packages in the wild that are opensource as well, but none of them is as fast or provides a simple way of obtaining the captures image as a numpy array out of the box. The default behavior of fastgrab is to provide the user with the image as a numpy array. Beyond that the user is free to manipulate the image since the pixel data is accessible via a fast and flexible array, i.e a numpy array.

Typical capture frame rate on a modern machine

resolution fps
360p > 800
720p 260
1080p 200
4K 20

Usage example

  from fastgrab import screenshot
  # take a full screen screenshot
  img = screenshot.Screenshot().capture()
  # >> img is a numpy ndarray, do whatever you want with it
  # (optional)
  # e.g it can be displayed with matplotlib (install matplotlib first)
  from matplotlib import pyplot as plt
  plt.imshow(img[:, :, 0:3], interpolation='none', cmap='Greys_r')
  plt.show()

Getting Started

Fastgrab was initially developed in 2016 as part of an aimbot (for quake live). Fastgrab is developed and tested on linux. As far as the pre-requisited listed below are satisfied, it should work as expected on windows and osx. The low-level API of Fastgrab is implemented using the cpython, Numpy and X11 C APIs.

Comparison with other packages

The following comparison has been done a Intel i7-6700HQ with 16 GB ram at a 1080p resolution. fastgrab is designed to be fast and does not provide any features beyond capturing the screen, unlike the other packages mentioned in the comparison below that do many great things.

package fps
fastgrab 200
python-mss 180
autopy 34
pyautogui 8
pyscreenshot 4

to benchmark fastgrab run the script examples/benchmark.py

Prerequisites

  • python >= 3.6 (python 2 is not supported)
  • Numpy >= 1.15
  • gcc >= 4.8.5
  • X11 => 1.20

note that fastgrab could work with lower versions but I have not tested it (and probaby will not).

Installing

Fastgrab can be installed in several ways:

pip install fastgrab
pip install git+git://github.com/mherkazandjian/fastgrab.git
git clone https://github.com/mherkazandjian/fastgrab.git
cd fastgrab
python setup.py install

Running the tests

Execute the following in the source root dir

pytest tests

or

pip install tox-pipenv
pipenv install
tox

Contributing

Submit a pull request or create an issue if you find any bugs.

Any help/pull requests that implement support for the following are welcome:

  • python 2.7
  • osx
  • windows

Authors

License

This project is licensed under GPLv3

Acknowledgments

fastgrab's People

Contributors

dependabot[bot] avatar mherkazandjian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fastgrab's Issues

pip install dont working

Collecting fastgrab
  Downloading fastgrab-0.2.0.tar.gz (5.1 kB)
Using legacy 'setup.py install' for fastgrab, since package 'wheel' is not installed.
Installing collected packages: fastgrab
    Running setup.py install for fastgrab ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\andre\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\andre\\AppData\\Local\\Temp\\pip-install-_wkkzcn6\\fastgrab\\setup.py'"'"'; __file__='"'"'C:\\Users\\andre\\AppData\\Local\\Temp\\pip-install-_wkkzcn6\\fastgrab\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\andre\AppData\Local\Temp\pip-record-mc2kaxii\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\andre\appdata\local\programs\python\python38\Include\fastgrab'
         cwd: C:\Users\andre\AppData\Local\Temp\pip-install-_wkkzcn6\fastgrab\
    Complete output (22 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\fastgrab
    copying fastgrab\metadata.py -> build\lib.win-amd64-3.8\fastgrab
    copying fastgrab\screenshot.py -> build\lib.win-amd64-3.8\fastgrab
    copying fastgrab\__init__.py -> build\lib.win-amd64-3.8\fastgrab
    running build_ext
    building 'fastgrab._linux_x11' extension
    creating build\temp.win-amd64-3.8
    creating build\temp.win-amd64-3.8\Release
    creating build\temp.win-amd64-3.8\Release\fastgrab
    creating build\temp.win-amd64-3.8\Release\fastgrab\linux_x11
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\andre\appdata\local\programs\python\python38\lib\site-packages\numpy\core\include -Ic:\users\andre\appdata\local\programs\python\python38\include -Ic:\users\andre\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcfastgrab/linux_x11/screenshot.c /Fobuild\temp.win-amd64-3.8\Release\fastgrab/linux_x11/screenshot.obj -fno-strict-aliasing -std=c11 -mtune=native
    cl: Є®¬ ­¤­ п бва®Є  warning D9002: Їа®ЇгбЄ ­ҐЁ§ўҐбв­®Ј® Ї а ¬Ґва  "-fno-strict-aliasing"
    cl: Є®¬ ­¤­ п бва®Є  warning D9002: Їа®ЇгбЄ ­ҐЁ§ўҐбв­®Ј® Ї а ¬Ґва  "-std=c11"
    cl: Є®¬ ­¤­ п бва®Є  warning D9002: Їа®ЇгбЄ ­ҐЁ§ўҐбв­®Ј® Ї а ¬Ґва  "-mtune=native"
    screenshot.c
    fastgrab/linux_x11/screenshot.c(2): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о祭ЁҐ: X11/Xlib.h: No such file or directory,
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\andre\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\andre\\AppData\\Local\\Temp\\pip-install-_wkkzcn6\\fastgrab\\setup.py'"'"'; __file__='"'"'C:\\Users\\andre\\AppData\\Local\\Temp\\pip-install-_wkkzcn6\\fastgrab\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\andre\AppData\Local\Temp\pip-record-mc2kaxii\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\andre\appdata\local\programs\python\python38\Include\fastgrab' Check the logs for full command output.

setup.py imports numpy

Hello,

numpy, which is not in the standard library, is currently imported in setup.py.

This breaks pip behavior when installing fastgrab (e.g., when numpy is not installed).

This hack would probably solve this.

ImportError: cannot import name 'screenshot' from 'fastgrab'

Traceback (most recent call last):
File "fastgrab.py", line 2, in
from fastgrab import screenshot
File "/root/Program/playground/opencv/fastgrab.py", line 2, in
from fastgrab import screenshot
ImportError: cannot import name 'screenshot' from 'fastgrab' (/root/Program/playground/opencv/fastgrab.py)

Does not work on debian 10 linux.
Please fix.

[OPTMIZATION] - screenshot

Yo!
what way do u think is more optimized?
Each Thread print with specific area (bbox) and do your own stuffs
or
1 thread print and the others crop ur needed area to find your stuffs??

i`ve many thread and each one find something in a specific area in RPGMMO
(Buff / Debuff), Life, Mana, Speed, hunger, status, etc.
studding and trying to make a simple bot

Failed installation on MacOS 10.14.5

Hi, the following is the error output when running pip3 install fastgrab

MacOS 10.14.5
Python 3.7.3
Numpy 1.16.4
XQuartz 2.7.11 (xorg-server 1.18.4)
gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin


Failed building wheel for fastgrab
Running setup.py clean for fastgrab
Failed to build fastgrab
Installing collected packages: fastgrab
Running setup.py install for fastgrab ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-install-ii2z67f6/fastgrab/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-record-c128id6t/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/fastgrab
copying fastgrab/metadata.py -> build/lib.macosx-10.14-x86_64-3.7/fastgrab
copying fastgrab/init.py -> build/lib.macosx-10.14-x86_64-3.7/fastgrab
copying fastgrab/screenshot.py -> build/lib.macosx-10.14-x86_64-3.7/fastgrab
running build_ext
building 'fastgrab._linux_x11' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/fastgrab
creating build/temp.macosx-10.14-x86_64-3.7/fastgrab/linux_x11
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c fastgrab/linux_x11/screenshot.c -o build/temp.macosx-10.14-x86_64-3.7/fastgrab/linux_x11/screenshot.o -fno-strict-aliasing -std=c11 -mtune=native
fastgrab/linux_x11/screenshot.c:16:15: warning: implicit declaration of function 'XOpenDisplay' is invalid in C99 [-Wimplicit-function-declaration]
display = XOpenDisplay(NULL);
^
fastgrab/linux_x11/screenshot.c:16:13: warning: incompatible integer to pointer conversion assigning to 'Display *' (aka 'struct _XDisplay *') from 'int' [-Wint-conversion]
display = XOpenDisplay(NULL);
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:20:5: warning: implicit declaration of function 'XCloseDisplay' is invalid in C99 [-Wimplicit-function-declaration]
XCloseDisplay(display);
^
fastgrab/linux_x11/screenshot.c:32:15: warning: implicit declaration of function 'XOpenDisplay' is invalid in C99 [-Wimplicit-function-declaration]
display = XOpenDisplay(NULL);
^
fastgrab/linux_x11/screenshot.c:32:13: warning: incompatible integer to pointer conversion assigning to 'Display *' (aka 'struct _XDisplay *') from 'int' [-Wint-conversion]
display = XOpenDisplay(NULL);
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:34:11: warning: implicit declaration of function 'XGetImage' is invalid in C99 [-Wimplicit-function-declaration]
img = XGetImage(display,
^
fastgrab/linux_x11/screenshot.c:34:9: warning: incompatible integer to pointer conversion assigning to 'XImage *' (aka 'struct _XImage *') from 'int' [-Wint-conversion]
img = XGetImage(display,
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:53:5: warning: implicit declaration of function 'XCloseDisplay' is invalid in C99 [-Wimplicit-function-declaration]
XCloseDisplay(display);
^
fastgrab/linux_x11/screenshot.c:78:15: warning: implicit declaration of function 'XOpenDisplay' is invalid in C99 [-Wimplicit-function-declaration]
display = XOpenDisplay(NULL);
^
fastgrab/linux_x11/screenshot.c:78:13: warning: incompatible integer to pointer conversion assigning to 'Display *' (aka 'struct _XDisplay *') from 'int' [-Wint-conversion]
display = XOpenDisplay(NULL);
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:79:11: warning: implicit declaration of function 'XGetImage' is invalid in C99 [-Wimplicit-function-declaration]
img = XGetImage(display,
^
fastgrab/linux_x11/screenshot.c:79:9: warning: incompatible integer to pointer conversion assigning to 'XImage *' (aka 'struct _XImage *') from 'int' [-Wint-conversion]
img = XGetImage(display,
^ ~~~~~~~~~~~~~~~~~~
fastgrab/linux_x11/screenshot.c:85:5: warning: implicit declaration of function 'XCloseDisplay' is invalid in C99 [-Wimplicit-function-declaration]
XCloseDisplay(display);
^
13 warnings generated.
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/fastgrab/linux_x11/screenshot.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lX11 -lgomp -o build/lib.macosx-10.14-x86_64-3.7/fastgrab/_linux_x11.cpython-37m-darwin.so
ld: library not found for -lX11
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1

----------------------------------------

Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-install-ii2z67f6/fastgrab/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-record-c128id6t/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/hr/4vld7k61587b6vd95wrmknp80000gn/T/pip-install-ii2z67f6/fastgrab/

numpy array not compatible with opencv

please add support for using with opencv as this is basically what im looking for for my bot project but the array is not compatible with opencv and would defeat the purpose to reconvert it back. would be helpful if there was a function that just had it already converted for opencv

Can't install. Here is the log:

Olehs-MacBook-Pro:Downloads olehkopyl$ pip install fastgrab
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Collecting fastgrab
Using cached fastgrab-0.2.0.tar.gz (5.1 kB)
Building wheels for collected packages: fastgrab
Building wheel for fastgrab (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/[email protected]/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-install-s5kjv0wl/fastgrab_7099725697c24e9e94bc273ff3f1dc0a/setup.py'"'"'; file='"'"'/private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-install-s5kjv0wl/fastgrab_7099725697c24e9e94bc273ff3f1dc0a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-wheel-wz8k1qsa
cwd: /private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-install-s5kjv0wl/fastgrab_7099725697c24e9e94bc273ff3f1dc0a/
Complete output (19 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-12-x86_64-3.8
creating build/lib.macosx-12-x86_64-3.8/fastgrab
copying fastgrab/metadata.py -> build/lib.macosx-12-x86_64-3.8/fastgrab
copying fastgrab/init.py -> build/lib.macosx-12-x86_64-3.8/fastgrab
copying fastgrab/screenshot.py -> build/lib.macosx-12-x86_64-3.8/fastgrab
running build_ext
building 'fastgrab._linux_x11' extension
creating build/temp.macosx-12-x86_64-3.8
creating build/temp.macosx-12-x86_64-3.8/fastgrab
creating build/temp.macosx-12-x86_64-3.8/fastgrab/linux_x11
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/usr/local/lib/python3.8/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/[email protected]/3.8.12_1/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c fastgrab/linux_x11/screenshot.c -o build/temp.macosx-12-x86_64-3.8/fastgrab/linux_x11/screenshot.o -fno-strict-aliasing -std=c11 -mtune=native
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk build/temp.macosx-12-x86_64-3.8/fastgrab/linux_x11/screenshot.o -L/usr/local/lib -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/tcl-tk/lib -lX11 -lgomp -o build/lib.macosx-12-x86_64-3.8/fastgrab/_linux_x11.cpython-38-darwin.so
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1

ERROR: Failed building wheel for fastgrab
Running setup.py clean for fastgrab
Failed to build fastgrab
Installing collected packages: fastgrab
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at Homebrew/homebrew-core#76621
Running setup.py install for fastgrab ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/[email protected]/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-install-s5kjv0wl/fastgrab_7099725697c24e9e94bc273ff3f1dc0a/setup.py'"'"'; file='"'"'/private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-install-s5kjv0wl/fastgrab_7099725697c24e9e94bc273ff3f1dc0a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-record-bj51wcr1/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/fastgrab
cwd: /private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-install-s5kjv0wl/fastgrab_7099725697c24e9e94bc273ff3f1dc0a/
Complete output (19 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-12-x86_64-3.8
creating build/lib.macosx-12-x86_64-3.8/fastgrab
copying fastgrab/metadata.py -> build/lib.macosx-12-x86_64-3.8/fastgrab
copying fastgrab/init.py -> build/lib.macosx-12-x86_64-3.8/fastgrab
copying fastgrab/screenshot.py -> build/lib.macosx-12-x86_64-3.8/fastgrab
running build_ext
building 'fastgrab._linux_x11' extension
creating build/temp.macosx-12-x86_64-3.8
creating build/temp.macosx-12-x86_64-3.8/fastgrab
creating build/temp.macosx-12-x86_64-3.8/fastgrab/linux_x11
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/usr/local/lib/python3.8/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/[email protected]/3.8.12_1/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c fastgrab/linux_x11/screenshot.c -o build/temp.macosx-12-x86_64-3.8/fastgrab/linux_x11/screenshot.o -fno-strict-aliasing -std=c11 -mtune=native
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk build/temp.macosx-12-x86_64-3.8/fastgrab/linux_x11/screenshot.o -L/usr/local/lib -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/tcl-tk/lib -lX11 -lgomp -o build/lib.macosx-12-x86_64-3.8/fastgrab/_linux_x11.cpython-38-darwin.so
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/[email protected]/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-install-s5kjv0wl/fastgrab_7099725697c24e9e94bc273ff3f1dc0a/setup.py'"'"'; file='"'"'/private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-install-s5kjv0wl/fastgrab_7099725697c24e9e94bc273ff3f1dc0a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/bh/55g94q1x3hdfscnrgqk931fc0000gp/T/pip-record-bj51wcr1/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/fastgrab Check the logs for full command output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.