Closed nono-london closed 4 years ago
Hi, I am trying to instal this projecton windows 8.1, using python envs 3.6 or 3.7, but i keep receiving an error message:
Installing collected packages: python-snappy, multitasking, toolz, locket, partd, cloudpickle, pyyaml, dask, msgpack, click, sortedcontainers, psutil, tblib, tornado, heapdict, zict, distributed, six, python-dateutil, pytz, numpy, pandas, llvmlite, numba, thrift, fastparquet, PyStore Running setup.py install for python-snappy: started Running setup.py install for python-snappy: finished with status 'error'
ERROR: Command errored out with exit status 1: command: 'D:\WindowsFolder\Documents\VisualStudioCode\Projects\Python\stackflow_answers\env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXXXXXXXXXXX\\AppData\\Local\\Temp\\pycharm-packaging\\python-snappy\\setup.py'"'"'; __file__='"'"'C:\\Users\\XXXXXXXXXXXX\\AppData\\Local\\Temp\\pycharm-packaging\\python-snappy\\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\Arnaud\AppData\Local\Temp\pip-record-u2qg1h8c\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\WindowsFolder\Documents\VisualStudioCode\Projects\Python\stackflow_answers\env\include\site\python3.7\python-snappy' cwd: C:\Users\XXXXXXXXXXXX\AppData\Local\Temp\pycharm-packaging\python-snappy\ Complete output (26 lines): C:\Python\Python370\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'cffi_modules' warnings.warn(msg) running install running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\snappy copying snappy\hadoop_snappy.py -> build\lib.win-amd64-3.7\snappy copying snappy\snappy.py -> build\lib.win-amd64-3.7\snappy copying snappy\snappy_cffi.py -> build\lib.win-amd64-3.7\snappy copying snappy\snappy_cffi_builder.py -> build\lib.win-amd64-3.7\snappy copying snappy\snappy_formats.py -> build\lib.win-amd64-3.7\snappy copying snappy\__init__.py -> build\lib.win-amd64-3.7\snappy copying snappy\__main__.py -> build\lib.win-amd64-3.7\snappy warning: build_py: byte-compiling is disabled, skipping. running build_ext building 'snappy._snappy' extension creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\snappy C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\WindowsFolder\Documents\VisualStudioCode\Projects\Python\stackflow_answers\env\include -IC:\Python\Python370\include -IC:\Python\Python370\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\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" /EHsc /Tpsnappy/snappymodule.cc /Fobuild\temp.win-amd64-3.7\Release\snappy/snappymodule.obj snappymodule.cc snappy/snappymodule.cc(31): fatal error C1083: Cannot open include file: 'snappy-c.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\WindowsFolder\Documents\VisualStudioCode\Projects\Python\stackflow_answers\env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\XXXXXXXXXXXX\AppData\Local\Temp\pycharm-packaging\python-snappy\setup.py'"'"'; file='"'"'C:\Users\XXXXXXXXXXXX\AppData\Local\Temp\pycharm-packaging\python-snappy\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\Arnaud\AppData\Local\Temp\pip-record-u2qg1h8c\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\WindowsFolder\Documents\VisualStudioCode\Projects\Python\stackflow_answers\env\include\site\python3.7\python-snappy' Check the logs for full command output.
Looking further the docs of Ran, I foudn this link, which explain how to install snappy on windows::
https://stackoverflow.com/questions/42979544/how-to-install-snappy-c-libraries-on-windows-10-for-use-with-python-snappy-in-an/43756412#43756412
Hi, I am trying to instal this projecton windows 8.1, using python envs 3.6 or 3.7, but i keep receiving an error message:
Installing collected packages: python-snappy, multitasking, toolz, locket, partd, cloudpickle, pyyaml, dask, msgpack, click, sortedcontainers, psutil, tblib, tornado, heapdict, zict, distributed, six, python-dateutil, pytz, numpy, pandas, llvmlite, numba, thrift, fastparquet, PyStore Running setup.py install for python-snappy: started Running setup.py install for python-snappy: finished with status 'error'
ERROR: Command errored out with exit status 1: 'D:\WindowsFolder\Documents\VisualStudioCode\Projects\Python\stackflow_answers\env\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\XXXXXXXXXXXX\AppData\Local\Temp\pycharm-packaging\python-snappy\setup.py'"'"'; file='"'"'C:\Users\XXXXXXXXXXXX\AppData\Local\Temp\pycharm-packaging\python-snappy\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\Arnaud\AppData\Local\Temp\pip-record-u2qg1h8c\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\WindowsFolder\Documents\VisualStudioCode\Projects\Python\stackflow_answers\env\include\site\python3.7\python-snappy' Check the logs for full command output.