Closed nimmortal closed 5 years ago
could you try adding -std=c++11
to setup.py
like the other flags here: https://github.com/wbolster/plyvel/blob/1a04cfb09af19568bdbfbd531b115262eefc29a0/setup.py#L18-L19
and then try building plyvel from source? (typing make
usually suffices)
or better yet, try out the branch from #91
pip3 install git+https://github.com/ryandesign/plyvel.git@fix-build-on-10.6
` clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -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/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c plyvel/_plyvel.cpp -o build/temp.macosx-10.13-x86_64-3.7/plyvel/_plyvel.o -Wall -g -x c++ clang: error: no such file or directory: 'plyvel/_plyvel.cpp' clang: error: no input files error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/44/qt_sltss2ld3mr9dtfhhd21r0000gn/T/pip-req-build-kd6mc_t4/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/44/qt_sltss2ld3mr9dtfhhd21r0000gn/T/pip-record-lj52dzzg/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/44/qt_sltss2ld3mr9dtfhhd21r0000gn/T/pip-req-build-kd6mc_t4/`
to downgrade leveldb use: brew uninstall leveldb brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/86c8b39428a4e485e8afcc02f2e31da9d53007a0/Formula/leveldb.rb
@fenidik please make a normal checkout and follow the build steps as described in the developer/contributor docs. there is an extra cython build step for git checkouts.
@wbolster I also had this issue installing from PyPi. I added the switch you indicated, built locally and installed, and it works fine.
I should clarify - by works fine, I mean "import plyvel" now returns without error. It used to throw errors about a missing dylib.
@kyuupichan thanks. re the checkout, did you actually use the branch from #91 or current master?
I just used master - simply git cloned it.
ok so that doesn't add much then. it's #91 that supposedly fixes this (i don't develop on osx myself)
@wbsolster I can confirm that #91, but only with an extra -std=c++11
works. This includes removal of the platform code.
extra_compile_args = ['-Wall', '-g', '-x', 'c++', '-std=c++11']
I can also confirm that keeping the platform code and adding -std=c++11
to the end of the Darwin list also works. I hope this is helpful.
to downgrade leveldb use: brew uninstall leveldb brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/86c8b39428a4e485e8afcc02f2e31da9d53007a0/Formula/leveldb.rb
Save my life!
I am trying to install caffe on my MacOS (Mojave 10.14.3).
It failed when make all
.
Hello guys.
I had an issue with plyvel and leveldb on macos. It was about installing plyvel. The issue was similar to the #80. However, I discovered that leveldb was updated from 1.20 (build from 2017) to the newest 1.21 (https://github.com/google/leveldb/releases/tag/1.21 - 10 days ago). So I tried to downgrade leveldb to 1.20 and it works now, I assume that the newest version is not compatible with plyvel on macos.
Installation log: