Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread Andi Vajda
On Tue, 31 Aug 2010, technology inspired wrote: TJ Ninneman's solution has worked. When Python is setup with Mod_WSGI on Apache2, it is a recommeded to create a WSGI file in the application and provide it as the root in the Apache2 mod_wsgi settings. These should be called in the wsgi file at

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread technology inspired
Hi All, TJ Ninneman's solution has worked. When Python is setup with Mod_WSGI on Apache2, it is a recommeded to create a WSGI file in the application and provide it as the root in the Apache2 mod_wsgi settings. These should be called in the wsgi file at the earliest. import lucene lucene.initVM(c

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread technology inspired
Hi Andi, Thanks for the reply. My example runs fine when it runs alone (pure python). Here is the code: #import sys, os #sys.path.append("/home/v/workspace/example-project/src/trunk") #os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings' from lucene import Field, Document, initVM, NIOFSDirec

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-28 Thread Andi Vajda
On Sun, 29 Aug 2010, technology inspired wrote: I am using PyLucene 3.0.2 on Ubuntu 10.04 with Python 2.6.5 and Sun Java 1.6. I am written an example script to build index and store in a directory. Later on, I want it to search in my next example script which as of now I haven't written. There

Issues while connecting PyLucene code to Apache WSGI interface

2010-08-28 Thread technology inspired
Hi, I am using PyLucene 3.0.2 on Ubuntu 10.04 with Python 2.6.5 and Sun Java 1.6. I am written an example script to build index and store in a directory. Later on, I want it to search in my next example script which as of now I haven't written. There are two issues I have to mention and looking f