import _sqlite3 no module named error

Ned Deily nad at acm.org
Thu Jun 4 14:33:17 EDT 2009


In article 
<77e831100906040708l1a8bf638n19bbff05607b3d4a at mail.gmail.com>,
 Vincent Davis <vincent at vincentdavis.net> 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
> http://code.google.com/p/simpletasktimer/wiki/Installation
> 
> 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/dbapi2.py",
> 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.  
Try:

    sudo port install py25-sqlite3

which will bring along sqlite3 if not already installed.

It should be that simple.

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list