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

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to