Distrotech / pycups

Mirror of git://git.fedorahosted.org/git/pycups.git
GNU General Public License v2.0
11 stars 32 forks source link

can't install pycups on windows 10 #3

Open psylocas opened 5 years ago

psylocas commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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

ZhengLinLei commented 2 years ago

Same problem. Need help