[ANN] pysqlite 2.5.0 released

Gerhard Häring gh at ghaering.de
Mon Sep 8 04:12:50 EDT 2008


Matthias Huening wrote:
> Hi,
> 
>> - - Connection.enable_load_extension(enabled) to allow/disallow extension
>>   loading. Allows you to use fulltext search extension, for example ;-)
> 
> The following code (from the docs) produces an error:
> 
> from pysqlite2 import dbapi2 as sqlite3
> con = sqlite3.connect(":memory:")
> # Load the fulltext search extension
> con.enable_load_extension(True)
> con.execute("select load_extension('./fts3.so')")
> con.enable_load_extension(False)
> 
> 
> Error is:
> 
> con.execute("select load_extension('./fts3.so')")
> pysqlite2._sqlite.OperationalError: Das angegebene Modul wurde nicht 
> gefunden.
> 
> Where should I look for the module?

The sources are in ext/fts3 in the SQLite source tree. I haven't found 
any Makefile, so I it myself using this gcc command:

$ cd .../ext/fts3
$ gcc -shared -o ~/src/gh/pysqlite/build/lib.linux-i686-2.5/fts3.so *.c 
-lsqlite3

-- Gerhard




More information about the Python-list mailing list