ImportError: No module named _sqlite3 in GAE

When I try to run the local Google App Engine application server (v1.3.8) on my Fedora 14 with Python 2.5 (installed from the source) I get an importer copy

ImportError: No module named _sqlite3 

I have the following package installed: sqlite, sqlite-devel, python2.5, python2.7. I have done several google and it looks like this error occurs when there is no C binding for sqlite. However, since I have both sqlite and sqlite-devel, established C bindings must be present. I get the same error when I do

 import sqlite3 

in the Python console. What can be done to resolve this error?

+6
python google-app-engine sqlite3
source share
2 answers

Install sqlite-devel and rebuild Python.

+8
source share

This works the same on Ubuntu 10.10 using

$ sudo aptitude install sqlite3 libsqlite3-dev

and rebuild Python.

+3
source share

All Articles