Re: [pysqlite] pysqlite on osx 10.5.6

Gerhard Häring <[email protected]> Tue, 10 Mar 2009 22:42:05 +0100
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
massimo di stefano wrote:
> Hi All,
>
> I'm tring to run pysqlite on osx
> but it give me the follow errors :
>
> [...]
>      from pysqlite2._sqlite import *
> ImportError: dlopen(/Library/Python/2.5/site-packages/pysqlite2/ 
> _sqlite.so, 2): Symbol not found: _sqlite3_enable_load_extension
>    Referenced from: /Library/Python/2.5/site-packages/pysqlite2/ 
> _sqlite.so
>    Expected in: dynamic lookup
>
>  >>>
>
>
> have you any solution for these error ? 
> [...]
>   
Yes, it sucks. I had it myself on my new MacBook for the first time 
myself. Formerly I didn't have access to OS X systems ;-)

Here's a workaround:

$ export CFLAGS=-DSQLITE_OMIT_LOAD_EXTENSION
$ python setup.py build

-- Gerhard