Hi Nick,
The topic of mod_python was very recently discussed on the pylucene-dev
mailing list.
http://lists.osafoundation.org/pipermail/pylucene-dev/2005-July/000626.html
http://lists.osafoundation.org/pipermail/pylucene-dev/2005-July/000633.html
The first link above is the question that was asked, the second one is the
most informed reply that was received. I've never used mod_python myself, so
I'm only forwarding information here...
The issue with using mod_python is when you're using a threaded apache server,
all threads running any PyLucene code must be instances of PythonThread (and
not PyLuceneThread as mistakenly stated earlier) because the libgcj garbage
collector insists on creating and initializing the thread. It cannot be told
about a thread after the facts.
The solutions:
- improve the garbage collector to accept threads after their creation
(Hans Boehm, its author told me that he intends to support this,
eventually...)
- figure out a way to control the creation of threads in the apache server
- use an RPC mechanism as described in the second link above.
Andi..
On Fri, 15 Jul 2005, [EMAIL PROTECTED] wrote:
Hi Andi,
I went ahead and chose Python/PyLucene for our news management product.
Found a really good Python developer, and after about 3 months of solid
development work, we're close to finishing V1.0.
We're using Apache running mod_python, on Linux, and have one major problem
unresolved: how to run PyLucene with Apache threads. My developer mentioned
this had been discussed a bit on the public forum. We're currently using
XMLRPC to communicate to PyLucene as a CGI service, but this really defeats
the purpose of PyLucene and is too slow.
Is this a problem you've come across?
Thanks,
Nick
Andi Vajda wrote:
You're welcome.
Speaking of which, I just saw this on Slashdot yesterday:
http://it.slashdot.org/article.pl?sid=05/04/03/0715209&tid=156&tid=8
Andi..
On Mon, 4 Apr 2005, Nick Haddock wrote:
Hi Andi,
Just wanted to say thanks for meeting up with me last week to discuss
PyLucene and Python. It was very encouraging to meet you face to face,
and I appreciate the advice.
I've since done more exploration of analyzer issues in PyLucene, and see
how the modular, layered Lucene API supports the interleaving of Python
and Java-based code. Great that you have translated the LIA examples.
I'm in the final stages of investigating infrastructure issues (eg. web
application frameworks) and also testing the water when it comes to
recruitment of Python-compatible people.
I'll keep you posted with my progress.
Nick
----- Original Message ----- From: "Andi Vajda" <[EMAIL PROTECTED]>
To: "Nick Haddock" <[EMAIL PROTECTED]>
Cc: "Andi Vajda" <[EMAIL PROTECTED]>
Sent: Wednesday, March 30, 2005 4:09 PM
Subject: Re: PyLucene -- on Howard St
Sounds good. Come up to the 5th floor and ask for me at the front desk.
Andi..
On Wed, 30 Mar 2005, Nick Haddock wrote:
Hi Andi,
How about if I drop by at about 10am tomorrow morning for coffee?
Should be easy to find :)
Nick
650 224 4144
----- Original Message ----- From: "Andi Vajda"
<[EMAIL PROTECTED]>
To: "Nick Haddock" <[EMAIL PROTECTED]>
Cc: "Andi Vajda" <[EMAIL PROTECTED]>
Sent: Wednesday, March 30, 2005 1:09 PM
Subject: Re: PyLucene -- on Howard St
Indeed, I work at 543 Howard :)
I'm in the office usually on Monday, Tuesday and Thursday.
You're more than welcome to come grab some coffee (expresso maker on
the premises) or lunch at our offices (Tuesday or Thursday).
Tomorrow, after 12:15 for lunch, or before 10:30 for coffee, would
work.
Let me know...
Andi..
On Wed, 30 Mar 2005, Nick Haddock wrote:
Hi Andi,
As a relatively new Python user, I was pleasantly surprised at how
easy it has been to install and play around with PyLucene. Thanks for
your hard work in producing such a quality piece of software.
I'm contacting you directly in case you actually work in the Howard St
office of OSAF? I work just along the road, at 612 Howard St, where I
have a consulting/start-up business in text processing.
We are just about to start work on V2 of a fairly significant (and
hopefully high profile) news watching service, which will be based on
some version of Lucene. The question is whether to go with Python for
the front-end and back-end (using PyLucene), or to take the safer
route of Java for the front-end and search/indexing. I would prefer
Python, but am concerned about complications that may arise with
PyLucene.
If you work locally, let me know if you'd be interested in grabbing a
coffee. I've got a research background (academia and HP Labs), and
would love to find out more about OSAF.
Cheers,
Nick
650 224 4144
[EMAIL PROTECTED]
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev