how to get full-text search of pysqlite3 work in python2.5.2

Guilherme Polo ggpolo at gmail.com
Thu Oct 30 13:21:12 CET 2008


On 10/30/08, hawk <gaohawk at gmail.com> wrote:
> Hi,
>  my environment is debian, python 2.5.2.
>  when i call con.enable_load_extension(True), the following message
>  prompt out.
>  debian:~# python2.5
>  Python 2.5 (release25-maint, Jul 20 2008, 20:47:25)
>  [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>> import sqlite3
>  >>> con = sqlite3.connect(":memory:")
>  >>> con.enable_load_extension(True)
>  Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>  AttributeError: 'sqlite3.Connection' object has no attribute
>  'enable_load_extension'
>

enable_load_extension was added in pysqlite 2.5, but python 2.5.2
includes an older version of pysqlite.

>  Thanks
>  Hawk
>
> --
>  http://mail.python.org/mailman/listinfo/python-list
>


-- 
-- Guilherme H. Polo Goncalves



More information about the Python-list mailing list