[Xapian-discuss] Xapian 1.0 / Apache / Python problem

James Aylett james-xapian at tartarus.org
Fri May 25 10:04:39 BST 2007


On Fri, May 25, 2007 at 01:31:09AM +0100, Olly Betts wrote:

> > It is, and an extra print statement shows that the xapian module is  
> > being loaded correctly. It's only the Database creation that fails.
> 
> Xapian 1.0.0 defaults to the flint database backend for newly created
> databases, rather than quartz as older versions did.  On Unix, Flint
> uses fcntl locking rather than the presence of a lock file - that could
> make a difference, especially if the index directory is on an NFS mount
> or something like that.  Or if you were using flint before, 0.9.x flint
> databases sadly aren't compatible with 1.0.0.

All of these would fire a Python exception, however, which should be
detectable. Even if mod_python has been configured to throw it away
unhelpfully, it should be logged or re-enabled...

Failing that, try something else, like creating a QueryParser. If that
works, it's almost certainly disk access/db format change. (On the
basis that if you can successfully run some code in the library, it's
probably not a lazy loading bug or similar.)

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list