Closed 631068264 closed 5 years ago
python-rocksdb-0.7.0 OSX 10.14.4 py3.7.3
Has installed rocksdb in OSX
β ~ brew reinstall rocksdb ==> Reinstalling rocksdb ==> Downloading https://homebrew.bintray.com/bottles/rocksdb-5.18.3.mojave.bottle.tar.gz Already downloaded: /Users/wyx/Library/Caches/Homebrew/downloads/7361dd525c184cda02a61c7cf325294a92e67c8a5cc88840aa6e77ad50dcc154--rocksdb-5.18.3.mojave.bottle.tar.gz ==> Pouring rocksdb-5.18.3.mojave.bottle.tar.gz πΊ /usr/local/Cellar/rocksdb/5.18.3: 107 files, 58.8MB
ERROR report
Collecting python-rocksdb Downloading https://files.pythonhosted.org/packages/94/81/9a8e498a26ec34da9e1ae87e831468aedb4a6ba42aa9ea779b97896cfea7/python-rocksdb-0.7.0.tar.gz (219kB) |ββββββββββββββββββββββββββββββββ| 225kB 83kB/s Requirement already satisfied: setuptools>=25 in ./.env/lib/python3.7/site-packages (from python-rocksdb) (41.0.1) Building wheels for collected packages: python-rocksdb Building wheel for python-rocksdb (setup.py) ... error ERROR: Complete output from command /Users/wyx/loh_workspace/loh-web/.env/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/pr/y105tp4s1w761lxysjs2pg0m0000gn/T/pip-install-s9tb5kpr/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 /private/var/folders/pr/y105tp4s1w761lxysjs2pg0m0000gn/T/pip-wheel-5o0g2po0 --python-tag cp37: ERROR: running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.7 creating build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/interfaces.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/merge_operators.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/errors.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb creating build/lib.macosx-10.14-x86_64-3.7/rocksdb/tests copying rocksdb/tests/test_options.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/tests copying rocksdb/tests/test_db.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/tests copying rocksdb/tests/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/tests copying rocksdb/tests/test_memtable.py -> build/lib.macosx-10.14-x86_64-3.7/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.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/_rocksdb.pyx -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/backup.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/cache.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/comparator.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/db.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/env.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/filter_policy.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/iterator.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/logger.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/memtablerep.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/merge_operator.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/options.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/slice_.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/slice_transform.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/snapshot.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/status.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/std_memory.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/table_factory.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/universal_compaction.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb creating build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/comparator_wrapper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/filter_policy_wrapper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/memtable_factories.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/merge_operator_wrapper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/slice_transform_wrapper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/utils.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/write_batch_iter_helper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp running build_ext cythoning rocksdb/_rocksdb.pyx to rocksdb/_rocksdb.cpp /Users/wyx/loh_workspace/loh-web/.env/lib/python3.7/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/pr/y105tp4s1w761lxysjs2pg0m0000gn/T/pip-install-s9tb5kpr/python-rocksdb/rocksdb/_rocksdb.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'rocksdb._rocksdb' extension creating build/temp.macosx-10.14-x86_64-3.7 creating build/temp.macosx-10.14-x86_64-3.7/rocksdb clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/opt/zlib/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c rocksdb/_rocksdb.cpp -o build/temp.macosx-10.14-x86_64-3.7/rocksdb/_rocksdb.o -std=c++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing -fno-rtti -mmacosx-version-min=10.7 -stdlib=libc++ rocksdb/_rocksdb.cpp:617:10: fatal error: 'rocksdb/slice.h' file not found #include "rocksdb/slice.h" ^~~~~~~~~~~~~~~~~ 1 error generated. error: command 'clang' failed with exit status 1 ---------------------------------------- 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: Complete output from command /Users/wyx/loh_workspace/loh-web/.env/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/pr/y105tp4s1w761lxysjs2pg0m0000gn/T/pip-install-s9tb5kpr/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 /private/var/folders/pr/y105tp4s1w761lxysjs2pg0m0000gn/T/pip-record-mp_x0il7/install-record.txt --single-version-externally-managed --compile --install-headers /Users/wyx/loh_workspace/loh-web/.env/bin/../include/site/python3.7/python-rocksdb: ERROR: running install running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.7 creating build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/interfaces.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/merge_operators.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/errors.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb creating build/lib.macosx-10.14-x86_64-3.7/rocksdb/tests copying rocksdb/tests/test_options.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/tests copying rocksdb/tests/test_db.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/tests copying rocksdb/tests/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/tests copying rocksdb/tests/test_memtable.py -> build/lib.macosx-10.14-x86_64-3.7/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.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/_rocksdb.pyx -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/backup.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/cache.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/comparator.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/db.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/env.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/filter_policy.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/iterator.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/logger.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/memtablerep.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/merge_operator.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/options.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/slice_.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/slice_transform.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/snapshot.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/status.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/std_memory.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/table_factory.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb copying rocksdb/universal_compaction.pxd -> build/lib.macosx-10.14-x86_64-3.7/rocksdb creating build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/comparator_wrapper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/filter_policy_wrapper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/memtable_factories.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/merge_operator_wrapper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/slice_transform_wrapper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/utils.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp copying rocksdb/cpp/write_batch_iter_helper.hpp -> build/lib.macosx-10.14-x86_64-3.7/rocksdb/cpp running build_ext skipping 'rocksdb/_rocksdb.cpp' Cython extension (up-to-date) building 'rocksdb._rocksdb' extension creating build/temp.macosx-10.14-x86_64-3.7 creating build/temp.macosx-10.14-x86_64-3.7/rocksdb clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/opt/zlib/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c rocksdb/_rocksdb.cpp -o build/temp.macosx-10.14-x86_64-3.7/rocksdb/_rocksdb.o -std=c++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing -fno-rtti -mmacosx-version-min=10.7 -stdlib=libc++ rocksdb/_rocksdb.cpp:617:10: fatal error: 'rocksdb/slice.h' file not found #include "rocksdb/slice.h" ^~~~~~~~~~~~~~~~~ 1 error generated. error: command 'clang' failed with exit status 1 ---------------------------------------- ERROR: Command "/Users/wyx/loh_workspace/loh-web/.env/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/pr/y105tp4s1w761lxysjs2pg0m0000gn/T/pip-install-s9tb5kpr/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 /private/var/folders/pr/y105tp4s1w761lxysjs2pg0m0000gn/T/pip-record-mp_x0il7/install-record.txt --single-version-externally-managed --compile --install-headers /Users/wyx/loh_workspace/loh-web/.env/bin/../include/site/python3.7/python-rocksdb" failed with error code 1 in /private/var/folders/pr/y105tp4s1w761lxysjs2pg0m0000gn/T/pip-install-s9tb5kpr/python-rocksdb/
What is the version of rocksdb you used?
May the export's missing..
export
rocksdb-5.18.3 python-rocksdb-0.7.0 @twmht
try to use pybind11 branch.
use docker:ubuntu solve my problem π€¦ββοΈ
python-rocksdb-0.7.0 OSX 10.14.4 py3.7.3
Has installed rocksdb in OSX
ERROR report