Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home Blog Lost library

Lost library

Posted by Manuel Reinhardt at Oct 25, 2011 05:28 PM |
When trying to start IPython in a virtualenv I kept getting the error
ImportError: No module named _sqlite3
I was using a python executable that I compiled myself, and it took me some time to realize that the compile process could find the sqlite header files but not the library itself. It turned out that on this machine (Ubuntu 11.04) the file libsqlite3.so is in /usr/lib/x86_64-linux-gnu, but python expected it in /usr/lib. Creating a softlink did the trick.
reinhardt
reinhardt says:
Dec 07, 2011 02:53 PM

I have encountered a similar problem when compiling python from source - I had to create a soft link to /usr/lib/x86_64-linux-gnu/libz.a (or libz.so) in /usr/lib, otherwise make would tell me it "Failed to find the necessary bits to build" zlib.

Commenting has been disabled.