Skip to content. | Skip to navigation

Personal tools
Log in
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 is in /usr/lib/x86_64-linux-gnu, but python expected it in /usr/lib. Creating a softlink did the trick.
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 in /usr/lib, otherwise make would tell me it "Failed to find the necessary bits to build" zlib.

Commenting has been disabled.