[pylucene-dev] PythonDirectory problems on OS X and PyLucene 2.2.0-1 /gcc 4.0.2

Andi Vajda vajda at osafoundation.org
Wed Aug 22 21:13:33 PDT 2007


On Wed, 22 Aug 2007, Marc Weeber wrote:

> I compiled PyLucene from the SVN trunk in order to also compile the the 
> Lucene jars myself. Compilation went fine, but the test scrips failed in some 
> cases. They all were related to openInput. One such error was:
>
>
> ERROR: test_getFieldNames (__main__.PythonDirectoryTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/Users/weeber/Desktop/PyLucene-src-2.2.0-1/test/test_PyLucene.py", 
> line 276, in test_getFieldNames
>   reader = IndexReader.open(store)
> TypeError: openInput() takes exactly 2 arguments (3 given)
>
> When I look at the lucene.cpp file and compare it to the 2.1 version, I see 
> indeed there have been changes in the method:
>
> static PyObject *j_directory_openInput(j_directory *self, PyObject *args)
>
> When I change this code back to the 2.1 version, these tests run fine.
>
> Anyone a more perman ent solution for this?
>
> Also, When I use NXLucene test scripts, it seems to fail on the 
> PythonDirectory code in cpp/PythonStore. Any ideas to solve this? My c++ 
> abilities are very limited

On svn trunk, test_PythonDirectory.py at line 128 has an optional arg that is 
new in Lucene/PyLucene 2.2. Do have that version ?

Andi..



More information about the pylucene-dev mailing list