On Sep 10, 1:51 pm, [EMAIL PROTECTED] 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:

    http://svn.python.org/view/python/trunk/Lib/sqlite3/

--
Hope this helps,
Steven

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to