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

Getting installation error in windows #63

Open
gauravkoradiya opened this issue Sep 23, 2019 · 1 comment
Open

Getting installation error in windows #63

gauravkoradiya opened this issue Sep 23, 2019 · 1 comment

Comments

@gauravkoradiya
Copy link

Windows : 10


H:\>pip install python-rocksdb
Collecting python-rocksdb
  Using cached https://files.pythonhosted.org/packages/94/81/9a8e498a26ec34da9e1ae87e831468aedb4a6ba42aa9ea779b97896cfea7/python-rocksdb-0.7.0.tar.gz
Requirement already satisfied: setuptools>=25 in c:\users\koradg\appdata\local\programs\python\python36\lib\site-packages (from python-rocksdb) (41.0.1)
Building wheels for collected packages: python-rocksdb
  Building wheel for python-rocksdb (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\koradg\appdata\local\programs\python\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\koradg\\AppData\\Local\\Temp\\pip-install-j0_j_tz7\\python-rocksdb\\setup.py'"'"'; __file__='"'"'C:\\Users\\koradg\\AppData\\Local\\Temp\\pip-install-j0_j_tz7\\python-rocksdb\\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\koradg\AppData\Local\Temp\pip-wheel-cl4zw6id' --python-tag cp36
       cwd: C:\Users\koradg\AppData\Local\Temp\pip-install-j0_j_tz7\python-rocksdb\
  Complete output (62 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.6
  creating build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\errors.py -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\interfaces.py -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\merge_operators.py -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\__init__.py -> build\lib.win-amd64-3.6\rocksdb
  creating build\lib.win-amd64-3.6\rocksdb\tests
  copying rocksdb\tests\test_db.py -> build\lib.win-amd64-3.6\rocksdb\tests
  copying rocksdb\tests\test_memtable.py -> build\lib.win-amd64-3.6\rocksdb\tests
  copying rocksdb\tests\test_options.py -> build\lib.win-amd64-3.6\rocksdb\tests
  copying rocksdb\tests\__init__.py -> build\lib.win-amd64-3.6\rocksdb\tests
  running egg_info
  writing python_rocksdb.egg-info\PKG-INFO
  writing dependency_links to python_rocksdb.egg-info\dependency_links.txt
  writing requirements to python_rocksdb.egg-info\requires.txt
  writing top-level names to python_rocksdb.egg-info\top_level.txt
  reading manifest file 'python_rocksdb.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'python_rocksdb.egg-info\SOURCES.txt'
  copying rocksdb\_rocksdb.cpp -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\_rocksdb.pyx -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\backup.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\cache.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\comparator.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\db.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\env.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\filter_policy.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\iterator.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\logger.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\memtablerep.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\merge_operator.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\options.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\slice_.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\slice_transform.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\snapshot.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\status.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\std_memory.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\table_factory.pxd -> build\lib.win-amd64-3.6\rocksdb
  copying rocksdb\universal_compaction.pxd -> build\lib.win-amd64-3.6\rocksdb
  creating build\lib.win-amd64-3.6\rocksdb\cpp
  copying rocksdb\cpp\comparator_wrapper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
  copying rocksdb\cpp\filter_policy_wrapper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
  copying rocksdb\cpp\memtable_factories.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
  copying rocksdb\cpp\merge_operator_wrapper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
  copying rocksdb\cpp\slice_transform_wrapper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
  copying rocksdb\cpp\utils.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
  copying rocksdb\cpp\write_batch_iter_helper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
  running build_ext
  cythoning rocksdb/_rocksdb.pyx to rocksdb\_rocksdb.cpp
  c:\users\koradg\appdata\local\programs\python\python36\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\koradg\AppData\Local\Temp\pip-install-j0_j_tz7\python-rocksdb\rocksdb\_rocksdb.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  building 'rocksdb._rocksdb' extension
  creating build\temp.win-amd64-3.6
  creating build\temp.win-amd64-3.6\Release
  creating build\temp.win-amd64-3.6\Release\rocksdb
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\koradg\appdata\local\programs\python\python36\include -Ic:\users\koradg\appdata\local\programs\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /EHsc /Tprocksdb\_rocksdb.cpp /Fobuild\temp.win-amd64-3.6\Release\rocksdb\_rocksdb.obj -std=c++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing -fno-rtti
  cl : Command line error D8021 : invalid numeric argument '/Wextra'
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for python-rocksdb
  Running setup.py clean for python-rocksdb
Failed to build python-rocksdb
Installing collected packages: python-rocksdb
  Running setup.py install for python-rocksdb ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\koradg\appdata\local\programs\python\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\koradg\\AppData\\Local\\Temp\\pip-install-j0_j_tz7\\python-rocksdb\\setup.py'"'"'; __file__='"'"'C:\\Users\\koradg\\AppData\\Local\\Temp\\pip-install-j0_j_tz7\\python-rocksdb\\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\koradg\AppData\Local\Temp\pip-record-vxbckp78\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\koradg\AppData\Local\Temp\pip-install-j0_j_tz7\python-rocksdb\
    Complete output (60 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    creating build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\errors.py -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\interfaces.py -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\merge_operators.py -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\__init__.py -> build\lib.win-amd64-3.6\rocksdb
    creating build\lib.win-amd64-3.6\rocksdb\tests
    copying rocksdb\tests\test_db.py -> build\lib.win-amd64-3.6\rocksdb\tests
    copying rocksdb\tests\test_memtable.py -> build\lib.win-amd64-3.6\rocksdb\tests
    copying rocksdb\tests\test_options.py -> build\lib.win-amd64-3.6\rocksdb\tests
    copying rocksdb\tests\__init__.py -> build\lib.win-amd64-3.6\rocksdb\tests
    running egg_info
    writing python_rocksdb.egg-info\PKG-INFO
    writing dependency_links to python_rocksdb.egg-info\dependency_links.txt
    writing requirements to python_rocksdb.egg-info\requires.txt
    writing top-level names to python_rocksdb.egg-info\top_level.txt
    reading manifest file 'python_rocksdb.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'python_rocksdb.egg-info\SOURCES.txt'
    copying rocksdb\_rocksdb.cpp -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\_rocksdb.pyx -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\backup.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\cache.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\comparator.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\db.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\env.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\filter_policy.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\iterator.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\logger.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\memtablerep.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\merge_operator.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\options.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\slice_.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\slice_transform.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\snapshot.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\status.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\std_memory.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\table_factory.pxd -> build\lib.win-amd64-3.6\rocksdb
    copying rocksdb\universal_compaction.pxd -> build\lib.win-amd64-3.6\rocksdb
    creating build\lib.win-amd64-3.6\rocksdb\cpp
    copying rocksdb\cpp\comparator_wrapper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
    copying rocksdb\cpp\filter_policy_wrapper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
    copying rocksdb\cpp\memtable_factories.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
    copying rocksdb\cpp\merge_operator_wrapper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
    copying rocksdb\cpp\slice_transform_wrapper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
    copying rocksdb\cpp\utils.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
    copying rocksdb\cpp\write_batch_iter_helper.hpp -> build\lib.win-amd64-3.6\rocksdb\cpp
    running build_ext
    skipping 'rocksdb\_rocksdb.cpp' Cython extension (up-to-date)
    building 'rocksdb._rocksdb' extension
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    creating build\temp.win-amd64-3.6\Release\rocksdb
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\koradg\appdata\local\programs\python\python36\include -Ic:\users\koradg\appdata\local\programs\python\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" /EHsc /Tprocksdb\_rocksdb.cpp /Fobuild\temp.win-amd64-3.6\Release\rocksdb\_rocksdb.obj -std=c++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing -fno-rtti
    cl : Command line error D8021 : invalid numeric argument '/Wextra'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\koradg\appdata\local\programs\python\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\koradg\\AppData\\Local\\Temp\\pip-install-j0_j_tz7\\python-rocksdb\\setup.py'"'"'; __file__='"'"'C:\\Users\\koradg\\AppData\\Local\\Temp\\pip-install-j0_j_tz7\\python-rocksdb\\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\koradg\AppData\Local\Temp\pip-record-vxbckp78\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output

I also have installed snappy, zlib and lz4 in windows and still getting error.

How to resolve? Thanks in advance.

@hy2014
Copy link

hy2014 commented Oct 29, 2022

you should use gcc instead

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

2 participants