python unix install, sqlite3

jim-on-linux inq1ltd at verizon.net
Tue May 29 10:59:00 EDT 2007


On Tuesday 29 May 2007 08:52, Simon wrote:
> I installed the source code on unix for python
> 2.5.1. The install went mainly okay, except for
> some failures regarding: _ssl, _hashlib,
> _curses, _curses_panel.
>
> No errors regarding sqlite3.
> However, when I start python and do an import
> sqlite3 I get:
>
> /ptmp/bin/> python
> Python 2.5.1 (r251:54863, May 29 2007,
> 05:19:30) [GCC 3.3.2] on sunos5
> Type "help", "copyright", "credits" or
> "license" for more information.
>
> >>> import sqlite3
>
I'm using python 2.5 on linux and it works fine
Try;
import sqlite3

in place of from sqlite3 import *

jim-on-linux
http://www.inqvista.com






> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/ptmp/Python-2.5.1/lib/python2.5/sqlite3/__ini
>t__.py", line 24, in <module>
>     from dbapi2 import *
>   File
> "/ptmp/Python-2.5.1/lib/python2.5/sqlite3/dbapi
>2.py", line 27, in <module>
>     from _sqlite3 import *
> ImportError: No module named _sqlite3



More information about the Python-list mailing list