Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install dont working #8

Open
Pro100rus32 opened this issue Nov 1, 2020 · 4 comments
Open

pip install dont working #8

Pro100rus32 opened this issue Nov 1, 2020 · 4 comments

Comments

@Pro100rus32
Copy link

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.
@steven251
Copy link

Did you figure a solution out?

@mherkazandjian
Copy link
Owner

I see from the log that you are doing this on windows. I do not test on windows.
I just pushed some change to the dependencies.
From what i see it is looking for X11/Xlib.h , maybe you can try to install X11 on windows i doubt that would work
tough since windows already runs on a different thing.
you can look at this for example and maybe contribute a workaround?
https://learn.microsoft.com/en-us/windows/win32/gdi/capturing-an-image?redirectedfrom=MSDN

i found this example here too
https://stackoverflow.com/questions/7292757/how-to-get-screenshot-of-a-window-as-bitmap-object-in-c
(check end of thread)

@KosmasF
Copy link

KosmasF commented Jan 25, 2024

GDI is very slow

@Arcitec
Copy link

Arcitec commented May 29, 2024

Windows users should use d3dshot instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants