Mac OSX sqlite problem. Missing?
scottishguy at gmail.com
Tue Sep 11 14:17:55 CEST 2007
On Sep 11, 2:46 am, "attn.steven.... at gmail.com"
<attn.steven.... at gmail.com> wrote:
> On Sep 10, 1:51 pm, ricardo.turp... at gmail.com wrote:
> > Diez B. Roggisch wrote:
> > > Are you by any chance using the python 2.3 when issuing that import
> > > statement?
> > > Diez
> > Unfortunately not :(
> > ibook:~/project1$ python -V
> > Python 2.5
> > ibook:~/project1$ python
> > Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
> > [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.>>> import sqlite
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > ImportError: No module named sqlite
> Isn't it sqlite3 (instead of sqlite)?
> Python 2.5.1c1 (r251c1:54692, Apr 17 2007, 21:12:16)
> [GCC 4.0.0 (Apple Computer, Inc. build 5026)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.>>> import sqlite3
> >>> sqlite3.Connection
> <type 'sqlite3.Connection'>>>> sqlite3.Connection.__doc__
> 'SQLite database connection object.'
> I also see it under that name in the repository:
> Hope this helps,
The problem is that the user is trying to install the turbogears
framework, and 'tg-admin' tries to import sqlite (not sqlite3)
He's getting this error:
'import sqlite. ImportError: No module named sqlite'.
Without changing the turbogears code, what should he do? Set up a
symbolic link from 'sqlite3' to 'sqlite' ?
More information about the Python-list