Using PyLucene under my IDE (wing) tends to leave lock files laying around. A
bit of googling pointed me at:
http://lists.osafoundation.org/pipermail/pylucene-dev/2004-December/000290.html
But that doesn't appear to work - I continue to get JavaError:
java.io.IOException: Lock obtain timed out errors. This makes debugging hard
and puppies sad.
[EMAIL PROTECTED] ~ $ export GCJ_PROPERTIES="disableLuceneLocks=true"
[EMAIL PROTECTED] ~ $ ipython
Python 2.4.3 (#1, Jul 31 2006, 16:32:47)
[GCC 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
In [1]: import PyLucene
In [2]: PyLucene.System.getProp
PyLucene.System.getProperties PyLucene.System.getProperty
In [2]: PyLucene.System.getPropert
PyLucene.System.getProperties PyLucene.System.getProperty
In [2]: PyLucene.System.getProperty("disableLuceneLocks")
Out[2]: u'true'
In [3]: PyLucene.FSDirectory.getDisableLocks()
Out[3]: False
In [4]: PyLucene.VERSION
Out[4]: '2.0.0-1'
I've reported this as https://bugzilla.osafoundation.org/show_bug.cgi?id=6974.
In the meantime, I told Wing to do a `rm /tmp/lucene-*-write.lock` before
each execution, which appears to work but is clearly cheesy.
--
Peter Fein [EMAIL PROTECTED]
773-575-0694 Jabber: [EMAIL PROTECTED]
http://www.pobox.com/~pfein/ irc://irc.freenode.net/#chipy
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev