Can not import snappy in python -


i use package named python-snappy. package requires snappy library. so, download , install snappy following commands such as:

./configure make sudo make install 

when import snappy, receive errors:

from _snappy import compresserror, compressedlengtherror, \ importerror: libsnappy.so.1 cannot open shared object file: no such file or directory 

i'm using python 2.7, snappy, python-snappy , ubuntu 12.04 how can fix problem? thanks

traditionally might have run ldconfig utility update /etc/ld.so.cache (or equivalent appropriate os). might necessary add new entries (paths) /etc/ld.so.conf.

basically shared object (so) loaders on many versions of unix (and other unix-like operating systems) use cache resolve base filenames actual files loaded (usually mmap()'d). similar intermittent need run hash -r or rehash in shell after adding things directories in path.

usually can run ldconfig no arguments (possibly after adding new library's path /etc/ld.so.conf text file). makefiles during make install.

here's little bit more info: http://linux.101hacks.com/unix/ldconfig/


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -