[Tutor] sqlite3 import problem

Matthew Ngaha chigga101 at gmail.com
Fri Jan 3 03:17:56 CET 2014


im having problems importing sqlite3 on ubuntu python3.

  File "/usr/local/lib/python3.3/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/usr/local/lib/python3.3/sqlite3/dbapi2.py", line 26, in <module>
    from _sqlite3 import *
ImportError: No module named '_sqlite3'

i have that path and file (dbapi2.py). the problem is an import
statement for _sqlite3. i don't see this file but shouldn't python3.3
be able to import sqlite without errors? any suggestions? does anyone
have _sqlite3.py in their   /usr/local/lib/python3.3/sqlite3/
directory?


More information about the Tutor mailing list