On 03/01/14 13:36, Mark Lawrence wrote:
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?
You surprise me Alan, this is an oft used idiom in Python. A typical
example would be having a fast C module but if this can't be imported
fall back to a Python implementation.
Yes, but that's usually hidden from the user...
I didn't look closely enough at the file names in the traceback
and assumed the OP was explicitly importing using the underscore.
--
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