actually, the latest situation is <br><br>debian:~/pysqlite-2.5.0/doc# python<br>>>> from pysqlite2 import dbapi2 as sqlite3<br>>>> con = sqlite3.connect(":memory:")<br>>>> con.execute("CREATE VIRTUAL TABLE posts using FTS3(title, body);")<br>
Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>pysqlite2.dbapi2.OperationalError: no such module: FTS3<br><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">hawk gao</b> <span dir="ltr"><<a href="mailto:gaohawk@gmail.com">gaohawk@gmail.com</a>></span><br>Date: 2008/10/30<br>Subject: Re: how to get full-text search of pysqlite3 work in python2.5.2<br>
To: Guilherme Polo <<a href="mailto:ggpolo@gmail.com">ggpolo@gmail.com</a>><br><br><br>I build and install a 3.6.4 by following this guide <a href="http://www.sqlite.org/cvstrac/wiki?p=CompilingFts" target="_blank">http://www.sqlite.org/cvstrac/wiki?p=CompilingFts</a><br>
eventually, i can run "CREATE VIRTUAL TABLE posts using FTS3(title, body);" under sqlite3 command line.<br>
<br>debian:~/pysqlite-2.5.0# sqlite3<br>SQLite version 3.6.4<br>Enter ".help" for instructions<br>Enter SQL statements terminated with a ";"<br>sqlite> CREATE VIRTUAL TABLE posts using FTS3(title, body);<br>

sqlite><br><br>then i rebuild and reinstall pysqlite2.5.0.  but, even "from pysqlite2 import dbapi2 as sqlite3" cannot be accepted.<br><br>debian:~/pysqlite-2.5.0# python<div class="Ih2E3d"><br>Python 2.5 (release25-maint, Jul 20 2008, 20:47:25)<br>

[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> from pysqlite2 import dbapi2 as sqlite3<br>
</div><div class="Ih2E3d">
Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br></div>  File "pysqlite2/dbapi2.py", line 27, in <module><br>    from pysqlite2._sqlite import *<br>ImportError: No module named _sqlite<br>

<br><br><div class="gmail_quote"><div class="Ih2E3d">2008/10/30 Guilherme Polo <span dir="ltr"><<a href="mailto:ggpolo@gmail.com" target="_blank">ggpolo@gmail.com</a>></span><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>On 10/30/08, hawk gao <<a href="mailto:gaohawk@gmail.com" target="_blank">gaohawk@gmail.com</a>> wrote:<div><div></div><div class="Wj3C7c"><br>
> Thanks for your advice. but the problem still here.<br>
><br>
> debian:~/sqlite-3.6.4-build# python<br>
> Python 2.5 (release25-maint, Jul 20 2008, 20:47:25)<br>
> [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
>  >>> from pysqlite2 import dbapi2 as sqlite3<br>
> >>> con = sqlite3.connect(":memory:")<br>
> >>> con.execute("CREATE VIRTUAL TABLE posts using FTS3(title, body);")<br>
> Traceback (most recent call last):<br>
>    File "<stdin>", line 1, in <module><br>
> pysqlite2.dbapi2.OperationalError: no such module: FTS3<br>
><br>
<br>
</div></div></div><div><div></div><div class="Wj3C7c">Yes... you have to compile pysqlite against the sqlite library that<br>
has the builtin support fot fts3. pysqlite is probably being compiled<br>
against the sqlite found in /usr/lib, while the sqlite with fts3<br>
support is at /usr/local/lib.<br>
<font color="#888888"><br>
--<br>
-- Guilherme H. Polo Goncalves<br>
</font></div></div></blockquote></div><br>
</div><br>