Unable to pip install with Python 3.10
yconst opened this issue · comments
Yannis commented
Doing a pip install candle_driver
fails in a Conda environment with Python 3.10 in Windows:
Collecting candle_driver
Using cached candle_driver-0.1.5.tar.gz (13 kB)
Building wheels for collected packages: candle-driver
Building wheel for candle-driver (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\user\Anaconda3\envs\project_env\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-mubj47fl\\candle-driver_92913d5af7654aaaaee144286eff6d28\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-mubj47fl\\candle-driver_92913d5af7654aaaaee144286eff6d28\\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 'C:\Users\user\AppData\Local\Temp\pip-wheel-r5xlfk2t'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-mubj47fl\candle-driver_92913d5af7654aaaaee144286eff6d28\
Complete output (15 lines):
C:\Users\user\Anaconda3\envs\project_env\lib\site-packages\setuptools\dist.py:757: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_ext
building 'candle_driver' extension
creating build
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
creating build\temp.win-amd64-3.10\Release\src\candle_api
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icandle_api -IC:\Users\user\Anaconda3\envs\project_env\include -IC:\Users\user\Anaconda3\envs\project_env\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" /Tcsrc/candle_api/candle.c /Fobuild\temp.win-amd64-3.10\Release\src/candle_api/candle.obj
candle.c
src/candle_api/candle.c(22): fatal error C1083: Cannot open include file: 'candle.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for candle-driver
Running setup.py clean for candle-driver
Failed to build candle-driver
Installing collected packages: candle-driver
Running setup.py install for candle-driver ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\user\Anaconda3\envs\project_env\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-mubj47fl\\candle-driver_92913d5af7654aaaaee144286eff6d28\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-mubj47fl\\candle-driver_92913d5af7654aaaaee144286eff6d28\\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 'C:\Users\user\AppData\Local\Temp\pip-record-vz71gnre\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\Anaconda3\envs\project_env\Include\candle-driver'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-mubj47fl\candle-driver_92913d5af7654aaaaee144286eff6d28\
Complete output (17 lines):
C:\Users\user\Anaconda3\envs\project_env\lib\site-packages\setuptools\dist.py:757: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running install
C:\Users\user\Anaconda3\envs\project_env\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'candle_driver' extension
creating build
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
creating build\temp.win-amd64-3.10\Release\src\candle_api
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icandle_api -IC:\Users\user\Anaconda3\envs\project_env\include -IC:\Users\user\Anaconda3\envs\project_env\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" /Tcsrc/candle_api/candle.c /Fobuild\temp.win-amd64-3.10\Release\src/candle_api/candle.obj
candle.c
src/candle_api/candle.c(22): fatal error C1083: Cannot open include file: 'candle.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\user\Anaconda3\envs\project_env\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-mubj47fl\\candle-driver_92913d5af7654aaaaee144286eff6d28\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-mubj47fl\\candle-driver_92913d5af7654aaaaee144286eff6d28\\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 'C:\Users\user\AppData\Local\Temp\pip-record-vz71gnre\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\user\Anaconda3\envs\project_env\Include\candle-driver' Check the logs for full command output
```.
Jurgis commented
I'm not sure why it can't find candle.h, but try using https://pypi.org/project/gs-usb/ instead. It is a pure python implementation.
Yannis commented
Thanks for the prompt reply. I managed to pip install from this repo, so I'm guessing it could be an issue with the version on PyPi? Anyway, I'm closing this.