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

What does "set the proper environment variables for the compiler and linker" mean? #124

Open
rickwierenga opened this issue Mar 21, 2021 · 5 comments

Comments

@rickwierenga
Copy link

I got the following error when trying to import plyvel:

ImportError: dlopen(.../plyvel/_plyvel.cpython-37m-darwin.so, 2): Symbol not found: __ZTIN7leveldb10ComparatorE

The docs mention "Install LevelDB or set the proper environment variables for the compiler and linker". What does "proper" mean? I installed leveldb with brew install leveldb and already reinstalled plyvel. I'm on a Mac if it matters.

@wbolster
Copy link
Owner

i think you need to recompile plyvel (remove your pip cache first). see also the other open issues about osx

@rickwierenga
Copy link
Author

I tried reinstalling leveldb and plyvel, but that doesn't help. I keep getting the same error. I checked all previous macOS issues, but none of the solutions (if any were mentioned) worked either. Perhaps it's an issue with leveldb 1.23 and 1.22 will work (as mentioned here) or when the package is upgraded to work with the latest version.

@wbolster
Copy link
Owner

plyvel should work with both. make sure you (re)compile against the installed version. if you recompile you should see compiler output, not a locally cached wheel. did you try removing the pip cache first?

@liviaerxin
Copy link

liviaerxin commented May 6, 2021

I tried reinstalling leveldb and plyvel, but that doesn't help. I keep getting the same error. I checked all previous macOS issues, but none of the solutions (if any were mentioned) worked either. Perhaps it's an issue with leveldb 1.23 and 1.22 will work (as mentioned here) or when the package is upgraded to work with the latest version.

I also test compile both leveldb and plyvel on OSX. After that, python3 -c "import plyvel" using leveldb 1.23 will throw the same error,

ImportError: dlopen(/Users/siyao/Documents/python-packages/plyvel/plyvel/_plyvel.cpython-37m-darwin.so, 2): Symbol not found: __ZTIN7leveldb10ComparatorE

However, leveldb 1.21 is ok.

@liviaerxin
Copy link

liviaerxin commented May 6, 2021

I get leveldb 1.23 to work, see my post at #114 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants