Hi all,

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

best,

Marc



_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to