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

Installing plyvel on Ubuntu 12.04 #5

Closed
rendykstan opened this issue Apr 8, 2013 · 3 comments
Closed

Installing plyvel on Ubuntu 12.04 #5

rendykstan opened this issue Apr 8, 2013 · 3 comments

Comments

@rendykstan
Copy link

Hi,

I ran into an issue with installing plyvel on my server running Ubuntu 12.04, I received this error.

$python -c 'import plyvel'

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/plyvel/init.py", line 6, in from ._plyvel import ( ImportError: /usr/local/lib/python2.7/dist-packages/plyvel/_plyvel.so: undefined symbol: _ZN6snappy13RawUncompressEPKcmPc

I have these shared libraries install but it is still not working for me.

libleveldb1 (.deb for 12.10) libsnappy1 (apt-get), libleveldb-dev (apt-get), leveldb-doc (apt-get)

I am not installing plyvel on virtualenv on my server. Any know issue with plyvel install on the native python 2.7.3?

@wbolster
Copy link
Owner

wbolster commented Apr 8, 2013

Are the headers and the installed library the same version? What is the output of 'ldd _plyvel.so'?

— Wouter

(Sent from my phone. Please ignore the typos.)

rendykstan notifications@github.com schreef:

Hi,

I ran into an issue with installing plyvel on my server running Ubuntu
12.04, I received this error.

$python -c 'import plyvel'

Traceback (most recent call last): File "", line 1, in File
"/usr/local/lib/python2.7/dist-packages/plyvel/init.py", line 6, in
from ._plyvel import ( ImportError:
/usr/local/lib/python2.7/dist-packages/plyvel/_plyvel.so: undefined
symbol: _ZN6snappy13RawUncompressEPKcmPc

I have these shared libraries install but it is still not working for
me.

libleveldb1 (.deb for 12.10) libsnappy1 (apt-get), libleveldb-dev
(apt-get), leveldb-doc (apt-get)

I am not installing plyvel on virtualenv on my server. Any know issue
with plyvel install on the native python 2.7.3?


Reply to this email directly or view it on GitHub:
#5

@oleiade
Copy link

oleiade commented Apr 8, 2013

Hi @rendykstan

I frequently run through this error whenever I've mixed in some way packages versions, or have both manually installed and system-packages for leveldb.

Generally I just

sudo rm -rf /usr/local/lib/libleveldb*
sudo rm -rf /usr/local/lib/libsnappy*
sudo apt-get remove --purge libleveldb1 libleveldb-dev libsnappy1 libsnappy-dev
sudo apt-get install libleveldb1 libleveldb-dev

And everything just works fine.

You might find usefull to use my repository for leveldb related packages, which will provide you functional unified versions: See Elevator Readme

@rendykstan
Copy link
Author

Hi @oleiade

Thank you for the tip. I followed your instructions and did this.

$pico /etc/apt/sources.list
deb http://deb.oleiade.com/debian oneiric main
$apt-get update

ran into problematic key issue. And the solutions is as follows.

Take the key you have problem with, for example E635A714505A2DD1, take the last 8 symbols (in this case - 505A2DD1) and run the following in the terminal:

Code:
$gpg --keyserver keyserver.ubuntu.com --recv 505A2DD1
$gpg --export --armor 505A2DD1 | sudo apt-key add -
$apt-get update

$apt-get install libleveldb1 libleveldb-dev
$pip install plyvel
$python -c 'import plyvel'

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

3 participants