Installing PySQLite on OS X 10.4
cowie.rob at gmail.com
Wed Mar 15 16:48:17 CET 2006
Gerhard Häring wrote:
> Rob Cowie wrote:
> > [...]
> > However, if I do "from pysqlite2 import test" as suggested after
> > installation, I get the following traceback...
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > File "pysqlite2/test/__init__.py", line 25, in ?
> > from pysqlite2.test import dbapi, types, userfunctions, factory,
> > transactions
> > File "pysqlite2/test/dbapi.py", line 26, in ?
> > import pysqlite2.dbapi2 as sqlite
> > File "pysqlite2/dbapi2.py", line 32, in ?
> > from pysqlite2._sqlite import *
> > ImportError: No module named _sqlite
> > [...]
> Apparently, you're doing this from the pysqlite sources root directory.
> So the pysqlite2 directory is tried, which does ont include the compiled
> C extension module. Execuring from any other working directory on your
> system should work fine.
> I'll have to check that this is all properly documented before I do the
> next pysqlite release.
> -- Gerhard
Thanks.... however, now when I try "from pysqlite2 import test" it
Traceback (most recent call last):
File "<stdin>", line 1, in ?
line 25, in ?
line 26, in ?
line 32, in ?
line 7, in ?
line 6, in __bootstrap__
2): Symbol not found: _sqlite3_transfer_bindings
Expected in: dynamic lookup
I now suspect that this may all be down to the version of sqlite3
installed as part of OS X 10.4. Some people report success when using
this version with pysqlite, others report failure.
More information about the Python-list