[pylucene-dev] PyLucene in CherryPy

Rune Hansen rune.hansen at scanmine.com
Wed Jun 28 05:23:47 PDT 2006


On 28. jun. 2006, at 14.04, Álvaro Falquina Garrido wrote:

> Hi,
>
> On 28-6-2006, at 11.21 am, Andi Vajda wrote:
>
>> I don't know CherryPy or mod_python but there's got to be a way to  
>> customize the thread pools used to create the 'right' kind of  
>> thread instance.
>>
>> If someone comes up with a solution it'd be great to post it here  
>> as this is a rather frequently asked question.
>>
>
> I am using CherryPy 2.2.1 and PyLucene 2.0.0 on Windows 2000. For  
> them to work together, I have imported PyLucene and replaced  
> PyLucene.PythonThread for threading.Thread in _cpserver.py and  
> _cpwsgiserver.py. I have also disabled CherryPy's autoreload (by  
> adding autoreload.on=False to my configuration file) because  
> autoreload uses low level threads. The result seems to work fine  
> for now.
>
> Álvaro
>

Using the same approach as Álvaro, my experiments with cherrypy 2.x  
and pylucene 1.x showed that it ran without problems on OS X 10.3/4  
but failed miserably on linux 2.4/2.6 (redhat ES-2/3/4).

regards
/rune

Happy those, who can remain at Highbury!
Jane Austen (1775-1817)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20060628/bc210f5a/attachment.htm


More information about the pylucene-dev mailing list