Python pysqlite2 dbapi2 problem

linuxpythonsqlite

I'm having an issue with the line:

from pysqlite2 import dbapi2 as sqlite

The error i'm getting is:

ImportError: /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so: undefined symbol: sqlite3_enable_shared_cache

What can I do to solve this problem?

Thanks!

Best Answer

Sounds like _sqlite.so was compiled against a newer version of sqlite than you have installed. That function wasn't added to SQLite's API until version 3.5.0.