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

can't install pycups on windows 10 #3

Open
psylocas opened this issue May 10, 2019 · 3 comments
Open

can't install pycups on windows 10 #3

psylocas opened this issue May 10, 2019 · 3 comments

Comments

@psylocas
Copy link

Hello, iI hope I'm not wrong in posting this here :

I can not install PyCups on a windows 10 64 bit version 1809

C:\WINDOWS\system32>pip3 install pycups==1.9.74
Collecting pycups==1.9.74
Using cached https://files.pythonhosted.org/packages/00/ce/836a0deb8b24bcd5f850f8fb97f99fb4abd7374e078b9e6df5a0838f8eb5/pycups-1.9.74.tar.bz2
Building wheels for collected packages: pycups
Building wheel for pycups (setup.py) ... error
ERROR: Complete output from command 'c:\python37\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\COMMER1.COS\AppData\Local\Temp\pip-install-mz2jj466\pycups\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\COMMER1.COS\AppData\Local\Temp\pip-wheel-hkexg9hs' --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_ext
building 'cups' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DVERSION="1.9.74" -Ic:\python37\include -Ic:\python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tccupsmodule.c /Fobuild\temp.win-amd64-3.7\Release\cupsmodule.obj
cupsmodule.c
cupsmodule.c(23): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'cups/cups.h'ÿ: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe' failed with exit status 2

ERROR: Failed building wheel for pycups
pycups

Running setup.py clean for pycups
Failed to build pycups
Installing collected packages: pycups
Running setup.py install for pycups ... error
ERROR: Complete output from command 'c:\python37\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\COMMER1.COS\AppData\Local\Temp\pip-install-mz2jj466\pycups\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\COMMER1.COS\AppData\Local\Temp\pip-record-fnfahvbc\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_ext
building 'cups' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DVERSION="1.9.74" -Ic:\python37\include -Ic:\python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tccupsmodule.c /Fobuild\temp.win-amd64-3.7\Release\cupsmodule.obj
cupsmodule.c
cupsmodule.c(23): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'cups/cups.h'ÿ: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe' failed with exit status 2

ERROR: Command "'c:\python37\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\COMMER1.COS\AppData\Local\Temp\pip-install-mz2jj466\pycups\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\COMMER1.COS\AppData\Local\Temp\pip-record-fnfahvbc\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\COMMER~1.COS\AppData\Local\Temp\pip-install-mz2jj466\pycups\

I have the same problem with pychram on the same windows.
I installed visual build tools 2019 and VC ++ 2017 version 15.9 v14.16 latest v141 tools ans win 10 sdk.
I am a little lost, Can someone help me?

@rafaeldblima
Copy link

Don't know if you already solved this issue on your own, but i got this problem too.
In my porject we had to workaround it with VM's.

@nachovic
Copy link

nachovic commented Mar 4, 2020

Hi!
I have the same problem, could you tell me the workaround?

@ZhengLinLei
Copy link

Same problem. Need help

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

4 participants