[Xapian-discuss] allterms() in Python

Olly Betts olly at survex.com
Thu Nov 23 17:38:33 GMT 2006


On Thu, Nov 23, 2006 at 09:56:15AM -0500, Francis Irving wrote:
> xapian_db is a WriteableDatbase. If I do this ...
> 
> for term in xapian_db.allterms():
>     pass
> 
> I get this error ...
[...]
> I'm using libxapian13 0.9.9-1.99edgy on Ubuntu.

I think you must be accidentally using an older installation on the
bindings somehow.  This bug was fixed in 0.9.5, and there's a test in
smoketest.py which is just like yours except it does something in the
loop.  Since debian/rules (which builds the packages) runs "make check"
I can't see how this can have regressed.

> Traceback (most recent call last):
>   File "./xapdex.py", line 274, in ?
>     check_removed_docs(xapian_db)
>   File "./xapdex.py", line 254, in check_removed_docs
>     for term in xapian_db.allterms():
>   File "/usr/lib/python2.4/site-packages/xapian.py", line 864, in next

In 0.9.9, xapian.py only has 734 lines...

What's the first line of /usr/lib/python2.4/site-packages/xapian.py?
It should say it is generated by SWIG 1.3.30.

Cheers,
    Olly



More information about the Xapian-discuss mailing list