[pylucene-dev] debian unstable package of pylucene

Andi Vajda vajda at osafoundation.org
Wed Dec 27 11:03:56 PST 2006


On Wed, 27 Dec 2006, Andra Tori wrote:

> I proclaimed victory too soon...
>
> all tests pass, but when try to use it inside Django, it silently
> crushes. Crush happens on import sentance already... for example at:
> from PyLucene import FSDirectory
> ... no error message, just crush
>
> anyone had this problem before ?

It's probably a threading issue. Any thread using PyLucene *must* be an 
instance of PyLucene.PythonThread. This class ensures that the thread is 
properly setup with regards to libgcj's garbage collector. Currently, there is 
no way to add a thread to libgcj after it was created. This is a very old 
problem that may hopefully be fixed in the 4.x timeframe.

Others have found ways around this as has been discussed on this list before.
The archives [1] or google may help. Sorry, I can't be more specific, I have 
never used PyLucene with a web framework. Using twisted, it's as easy as 
creating a thread pool with a bunch of PyLucene.PythonThread instances.

Andi..

[1] http://lists.osafoundation.org/pipermail/pylucene-dev/



More information about the pylucene-dev mailing list