sqlite3 and Python 2.5.1

Robert Hancock hancock.robert at gmail.com
Tue Jun 17 01:20:53 CEST 2008


On Jun 16, 5:15 pm, Gerhard Häring <g... at ghaering.de> wrote:
> milan_sanremo wrote:
> > I have sqlite installed, but when I try to importsqlite3I receive:
>
> > Python 2.5.1 (r251:54863, Nov  3 2007, 02:54:36) [C] on sunos5
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> importsqlite3
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > ImportError: No module namedsqlite3
>
> > Yet:
>
> > # find /usr/local/python -name "sqlite*" -print
> > /usr/local/python/lib/python2.5/sqlite3
>
> > # /opt/csw/bin/sqlite3
> > SQLite version 3.2.2
> > Enter ".help" for instructions
> > sqlite>
>
> > What is missing?
>
> You compiled Python yourself. During that, theSQLite3header files
> could not be found, so thesqlite3module was not compiled/installed.
>
> -- Gerhard

Thanks, I'll recompile.



More information about the Python-list mailing list