-
Notifications
You must be signed in to change notification settings - Fork 6
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 glfw3 failed #26
Comments
I haven't tried windows, but you might get some luck with the instructions on the README. Try setting If that doesn't work, check out the repo and run both commands from the README. You might have more luck with a more active project, eg. https://github.com/FlorianRhiem/pyGLFW |
It's someone else's project I'm trying to run, so needed to go this route... |
Hi, I'm getting the same error, do you know any fix for this? Here is the error message again:
|
Did you try setting the |
Yes, but still nothing. The environment is set to: |
You need to set it to the location of the library, not the header. Here's the relevant line from setup.py. |
Ok, I've changed the environment variable as you suggested, but I get another error:
How can I fix this? |
Rinse-repeat. |
Yes, but the problem that it expects all the libs in |
Here's what I've tried: Because they are not included in the binaries download on their official website. Then I've created a folder After that I've tried to execute the command again, then I've got this error:
|
Getting random glfw3 lib files from around the web is only going to cause you problems. Why not download the last version that this code supported (3.0.1) from the official website? |
Downloaded the files from the official website, I pasted the 2 files in the folder and still the same error |
I'm trying to install this package on Win10, Python 3.7.
I ran
pip install glfw
succesfully before doingpip install cyglfw3
.I'm getting the following output:
pip install cyglfw3 Collecting cyglfw3 Using cached cyglfw3-3.1.0.2.tar.gz (159 kB) Requirement already satisfied: Cython in c:\users\sebastiaan\anaconda3\envs\pvnet\lib\site-packages (from cyglfw3) (0.29.21) Building wheels for collected packages: cyglfw3 Building wheel for cyglfw3 (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"'; __file__='"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\SEBAST~1\AppData\Local\Temp\pip-wheel-94v36s6i' cwd: C:\Users\SEBAST~1\AppData\Local\Temp\pip-install-51bpkevq\cyglfw3\ Complete output (22 lines): Warning: 'classifiers' should be a list, got type 'tuple' running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\compatible.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\version.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\__init__.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\glfw3.pyx -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\cglfw3.pxd -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\glfw3.c -> build\lib.win-amd64-3.7\cyglfw3 running build_ext building 'cyglfw3.glfw3' extension creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\cyglfw3 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Sebastiaan\Anaconda3\envs\pvnet\include -IC:\Users\Sebastiaan\Anaconda3\envs\pvnet\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-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" /Tccyglfw3/glfw3.c /Fobuild\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj glfw3.c cyglfw3/glfw3.c(624): fatal error C1083: Cannot open include file: 'GLFW/glfw3.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- ERROR: Failed building wheel for cyglfw3 Running setup.py clean for cyglfw3 Failed to build cyglfw3 Installing collected packages: cyglfw3 Running setup.py install for cyglfw3 ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"'; __file__='"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\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\SEBAST~1\AppData\Local\Temp\pip-record-drlsro3b\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\Include\cyglfw3' cwd: C:\Users\SEBAST~1\AppData\Local\Temp\pip-install-51bpkevq\cyglfw3\ Complete output (22 lines): Warning: 'classifiers' should be a list, got type 'tuple' running install running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\compatible.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\version.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\__init__.py -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\glfw3.pyx -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\cglfw3.pxd -> build\lib.win-amd64-3.7\cyglfw3 copying cyglfw3\glfw3.c -> build\lib.win-amd64-3.7\cyglfw3 running build_ext building 'cyglfw3.glfw3' extension creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\cyglfw3 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Sebastiaan\Anaconda3\envs\pvnet\include -IC:\Users\Sebastiaan\Anaconda3\envs\pvnet\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-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" /Tccyglfw3/glfw3.c /Fobuild\temp.win-amd64-3.7\Release\cyglfw3/glfw3.obj glfw3.c cyglfw3/glfw3.c(624): fatal error C1083: Cannot open include file: 'GLFW/glfw3.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\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\Sebastiaan\Anaconda3\envs\pvnet\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\setup.py'"'"'; __file__='"'"'C:\\Users\\SEBAST~1\\AppData\\Local\\Temp\\pip-install-51bpkevq\\cyglfw3\\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\SEBAST~1\AppData\Local\Temp\pip-record-drlsro3b\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Sebastiaan\Anaconda3\envs\pvnet\Include\cyglfw3' Check the logs for full command output.
I guess I need to change something about the GLFW installation, but I don't know what. Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: