import _sqlite3 no module named error

Ned Deily nad at
Thu Jun 4 20:33:17 CEST 2009

In article 
<77e831100906040708l1a8bf638n19bbff05607b3d4a at>,
 Vincent Davis <vincent at> wrote:

> I volunteered to help Marijo Mihelčić who was looking for someone with
> a mac the help him build a mac binary using py2app for his
> simpletasktimer
> when I try to run his app I get the no module named _sqlite3 , I am
> not sure what this is caused by as it looks to me like sqlite3 is
> trying to import it. Any idea how to fix this? Other than the obvious
> of getting _sqlite3 somehow, or maby it is that simple.
> here is what i get


>   "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/s
>   qlite3/",
> line 27, in <module>
>     from _sqlite3 import *
> ImportError: No module named _sqlite3
> logout

>From the path names, it appears you are using the MacPorts python2.5.  

    sudo port install py25-sqlite3

which will bring along sqlite3 if not already installed.

It should be that simple.

 Ned Deily,
 nad at

More information about the Python-list mailing list