-
Notifications
You must be signed in to change notification settings - Fork 76
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
plyvel import leads to ImportError with missing symbol reference despite libleveldb being installed #57
Comments
hmmm, i am by no means an expert here, but can you try
|
Yes that is the correct path on the system:
I'd guess from the output, that the |
is it compiled against the currently installed version (and dev headers?). perhaps pip is caching previously built incompatible wheels? ( |
also maybe different compilers used? (just thinking out loud.) |
also look at #27 |
The compilers are an interesting point, but I would guess that the Ubuntu 16.04 packages are built with the same which is available in the repository. Also the libraries look equivalent looking at the libleveldb.so
To ensure no cache is used i now rebuild plyvel using
this helped! Thanks alot, but it's strange that the cache directory |
so are you saying it works now? :) |
ping @lehmann-4178656ch, can this issue be closed? if so, maybe you can share what exactly solved the problem for you? thanks. |
Sorry for the delay, I was on a trip this weekend not near any computer. I don't know what exactly fixed it, as the pip-cache was not existing at first, maybe that was the problem but running
fixed it. |
awesome. perhaps there was a stray cache for the root user? also, was your first compilation attempt without the required packages installed? maybe that could explain it... |
The first attempts were made on a different machine, this is the so-to-speak staging system, thus the pitfall of not having packages installed was avoided. Stray cache could be a possibility, but all interaction was done through |
ok weird. as a last note i feel obliged to say that |
Hello,
I am trying to use plyvel 0.9 on a Ubuntu 16.04.2 LTS machine with Python 3.5.2-2ubuntu0~16.04.1.
I expected it to work, but I get an ImportError.
I did the following:
I installed leveldb with
apt install libleveldb-dev
which installed the following packages:libleveldb-dev:amd64 1.18-5
libleveldb1v5:amd64 1.18-5
I installed plyvel with
pip3 install plyvel
:The packages mentioned in https://plyvel.readthedocs.io/en/latest/installation.html#build-and-install-plyvel are installed and the shared objects of libleveldb can be found using locate:
And the plyvel extension library appears to link against it correctly:
However, curiously I found in the libleveldb.so.1.18 the searched symbol only with a slightly different variation:
This looks like the search thing, but with extra
__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS
inside. Any help will be appreciated.The text was updated successfully, but these errors were encountered: