[Tutor] sqlite3 import problem
Alan Gauld
alan.gauld at btinternet.com
Fri Jan 3 11:36:40 CET 2014
On 03/01/14 02:17, Matthew Ngaha wrote:
> 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'
As a matter of interest why do you have the underscore in front of
sqlite3? Is that deliberate?
I normally import it with just
import sqlite3
or
from sqlite3 import ...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list