I've compiled a new python from source ... maybe But the same tests are failing.
test/test_PythonDirectory.py ETesting Indexing Incremental Looping indexing 0 EEEEEEEEE ====================================================================== ERROR: test_FieldEnumeration (__main__.PythonDirectoryTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/pylucene-4.10.1-1/test/test_PyLucene.py", line 235, in test_FieldEnumeration self.test_indexDocument() File "/usr/src/pylucene-4.10.1-1/test/test_PyLucene.py", line 84, in test_indexDocument self.closeStore(store, writer) File "test/test_PythonDirectory.py", line 281, in closeStore arg.close() JavaError: java.lang.RuntimeException: InvalidArgsError Java stacktrace: java.lang.RuntimeException: InvalidArgsError at org.apache.pylucene.store.PythonDirectory.deleteFile(Native Method) at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:723) at org.apache.lucene.index.IndexFileDeleter.deleteNewFiles(IndexFileDeleter.java:710) at org.apache.lucene.index.IndexWriter.deleteNewFiles(IndexWriter.java:4753) at org.apache.lucene.index.DocumentsWriter$DeleteNewFilesEvent.process(DocumentsWriter.java:737) at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4807) at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4799) at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3226) at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3198) at org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:907) at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:984) at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:954) <snip> Ran 10 tests in 0.314s FAILED (errors=10) test/test_PythonException.py E ====================================================================== ERROR: testThroughLayerException (__main__.PythonExceptionTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/test_PythonException.py", line 39, in testThroughLayerException with self.assertRaises(lucene.JavaError): TypeError: failUnlessRaises() takes at least 3 arguments (2 given) ---------------------------------------------------------------------- Ran 1 test in 0.003s FAILED (errors=1) All other tests passed. -----Original Message----- From: Andi Vajda [mailto:va...@apache.org] Sent: Friday, October 10, 2014 6:54 PM To: pylucene-dev@lucene.apache.org Subject: Re: build pyLucene 4.10.1-1 > On Oct 10, 2014, at 09:46, Márk Csaba <mar...@gwyll.eu> wrote: > > Oracle JDK 7. > > $ java -version > java version "1.7.0_67" > Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) > Server VM (build 24.65-b04, mixed mode) What happens when you run a test file manually ? $ python test/test_..,,py Andi.. > > Csaba > > -----Original Message----- > From: Andi Vajda [mailto:va...@apache.org] > Sent: Friday, October 10, 2014 6:30 PM > To: pylucene-dev@lucene.apache.org > Subject: Re: build pyLucene 4.10.1-1 > > >> On Oct 10, 2014, at 03:14, Márk Csaba <mar...@gwyll.eu> wrote: >> >> I've cleaned out the site-local folder and did a recompile with --shared. > > Either way, it should work, with or without --shared. What version of Java > are you using and which distribution ? OpenJDK, Oracle, other ? > > Andi.. > >> >> Now lucene.initVM() + _.isShared() and lucene.initVM().isShared() return >> True. >> >> The make test still failing on PythonDirectoryTests with Java >> InvalidArgsError, but I'll try our app. >> >> Thank you for your help! >> >> Regards, >> Csaba >> >> >> >> -----Original Message----- >> From: Andi Vajda [mailto:va...@apache.org] >> Sent: Friday, October 10, 2014 12:56 AM >> To: pylucene-dev@lucene.apache.org >> Subject: RE: build pyLucene 4.10.1-1 >> >> >> >> That is very suspicious. You're still likely running something older than >> what you built. >> >> From what I've seen before, you're not building lucene with --shared (not >> running JCC in shared mode), thus lucene.initVM().isShared() should return >> False. >> Or, if I'm mistaken about this, it should return True, but not error out. >> >> Try this instead: >> $ python >> $ import lucene >> $ lucene.initVM() >> <jcc.JCCEnv object at 0x10dd020f0> >> $ _.isShared() >> True (for me, may be different for you depending on your use of >> --shared) >> >> Andi.. >>