lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: [VOTE] Release PyLucene 3.5.0
Date Thu, 08 Dec 2011 01:22:58 GMT

On Dec 7, 2011, at 17:18, Bill Janssen <janssen@parc.com> wrote:

> Bill Janssen <janssen@parc.com> wrote:
> 
>> Tried this on Windows XP with MinGW, gcc 4.5, Python 2.6, Java 1.6.
>> 
>> Builds and installs OK.
>> 
>> "make test" reveals some failures:
>> 
>>  * test_removeDocument fails badly with lots of these:
> 
> Same with 3.5.0-2.
> 
> ThaiAnalyzerTestCase also fails:
> 
> ======================================================================
> ERROR: testAnalyzer30 (__main__.ThaiAnalyzerTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "test/test_ThaiAnalyzer.py", line 76, in testAnalyzer30
>    self._assertAnalyzesTo(analyzer, u"", [])
>  File "c:\Documents and Settings\wjanssen\Desktop\pylucene-3.5.0-2\test\BaseTokenStreamTestCase.py",
line 87, in _assertAnalyzesTo
>    ts = a.tokenStream("dummy", StringReader(input))
> JavaError: java.lang.UnsupportedOperationException: This JRE does not have support for
Thai segmentation
>    Java stacktrace:
> java.lang.UnsupportedOperationException: This JRE does not have support for Thai segmentation
>        at org.apache.lucene.analysis.th.ThaiWordFilter.<init>(ThaiWordFilter.java:85)
>        at org.apache.lucene.analysis.th.ThaiAnalyzer.createComponents(ThaiAnalyzer.java:64)
>        at org.apache.lucene.analysis.ReusableAnalyzerBase.tokenStream(ReusableAnalyzerBase.java:92)
> 

That's a Java error. Your JVM doesn't do Thai. I didn't know this was possible.

A patch to silence this could be written and is welcome. Not a new issue and not a release
stopper, imho.

Andi..

> Bill
> 
>> 
>> ERROR: test_removeDocument (__main__.PythonDirectoryTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File "c:\Documents and Settings\wjanssen\Desktop\pylucene-3.5.0-1\test\test_PyLucene.py",
line 178, in test_removeDocument
>>    self.closeStore(store, searcher, reader)
>>  File "test/test_PythonDirectory.py", line 241, in closeStore
>>    arg.close()
>> JavaError: java.lang.RuntimeException: WindowsError
>>    Java stacktrace:
>> java.lang.RuntimeException: WindowsError
>>        at org.apache.pylucene.store.PythonDirectory.deleteFile(Native Method)
>>        at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:578)
>>        at org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:517)
>>        at org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:504)
>>        at org.apache.lucene.index.IndexFileDeleter.close(IndexFileDeleter.java:377)
>>        at org.apache.lucene.index.DirectoryReader.doCommit(DirectoryReader.java:864)
>>        at org.apache.lucene.index.IndexReader.commit(IndexReader.java:1464)
>>        at org.apache.lucene.index.IndexReader.commit(IndexReader.java:1450)
>>        at org.apache.lucene.index.IndexReader.decRef(IndexReader.java:273)
>>        at org.apache.lucene.index.IndexReader.close(IndexReader.java:1479)
>> 
>> 
>> ======================================================================
>> ERROR: test_removeDocuments (__main__.PythonDirectoryTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File "test/test_PythonDirectory.py", line 233, in tearDown
>>    shutil.rmtree(self.STORE_DIR)
>>  File "c:\Python26\lib\shutil.py", line 217, in rmtree
>>    onerror(os.remove, fullname, sys.exc_info())
>>  File "c:\Python26\lib\shutil.py", line 215, in rmtree
>>    os.remove(fullname)
>> WindowsError: [Error 32] The process cannot access the file because it is being used
by another process: 'testpyrepo\\_0.fdt'
>> 
>> ======================================================================
>> ERROR: test_searchDocuments (__main__.PythonDirectoryTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File "c:\Documents and Settings\wjanssen\Desktop\pylucene-3.5.0-1\test\test_PyLucene.py",
line 126, in test_searchDocuments
>>    self.test_indexDocument()
>>  File "c:\Documents and Settings\wjanssen\Desktop\pylucene-3.5.0-1\test\test_PyLucene.py",
line 47, in test_indexDocument
>>    writer = self.getWriter(store, analyzer, True)
>>  File "c:\Documents and Settings\wjanssen\Desktop\pylucene-3.5.0-1\test\test_PyLucene.py",
line 34, in getWriter
>>    IndexWriter.MaxFieldLength.LIMITED)
>> JavaError: java.lang.RuntimeException: WindowsError
>>    Java stacktrace:
>> java.lang.RuntimeException: WindowsError
>>        at org.apache.pylucene.store.PythonDirectory.deleteFile(Native Method)
>>        at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:578)
>>        at org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:256)
>>        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1178)
>>        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:936)
>> 
>> 
>> ======================================================================
>> ERROR: test_searchDocuments (__main__.PythonDirectoryTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File "test/test_PythonDirectory.py", line 233, in tearDown
>>    shutil.rmtree(self.STORE_DIR)
>>  File "c:\Python26\lib\shutil.py", line 217, in rmtree
>>    onerror(os.remove, fullname, sys.exc_info())
>>  File "c:\Python26\lib\shutil.py", line 215, in rmtree
>>    os.remove(fullname)
>> WindowsError: [Error 32] The process cannot access the file because it is being used
by another process: 'testpyrepo\\_0.fdt'
>> 
>> ======================================================================
>> ERROR: test_searchDocumentsWithMultiField (__main__.PythonDirectoryTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File "c:\Documents and Settings\wjanssen\Desktop\pylucene-3.5.0-1\test\test_PyLucene.py",
line 144, in test_searchDocumentsWithMultiField
>>    self.test_indexDocument()
>>  File "c:\Documents and Settings\wjanssen\Desktop\pylucene-3.5.0-1\test\test_PyLucene.py",
line 47, in test_indexDocument
>>    writer = self.getWriter(store, analyzer, True)
>>  File "c:\Documents and Settings\wjanssen\Desktop\pylucene-3.5.0-1\test\test_PyLucene.py",
line 34, in getWriter
>>    IndexWriter.MaxFieldLength.LIMITED)
>> JavaError: java.lang.RuntimeException: WindowsError
>>    Java stacktrace:
>> java.lang.RuntimeException: WindowsError
>>        at org.apache.pylucene.store.PythonDirectory.deleteFile(Native Method)
>>        at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:578)
>>        at org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:256)
>>        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1178)
>>        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:936)
>> 
>> 
>> ======================================================================
>> ERROR: test_searchDocumentsWithMultiField (__main__.PythonDirectoryTests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>  File "test/test_PythonDirectory.py", line 233, in tearDown
>>    shutil.rmtree(self.STORE_DIR)
>>  File "c:\Python26\lib\shutil.py", line 217, in rmtree
>>    onerror(os.remove, fullname, sys.exc_info())
>>  File "c:\Python26\lib\shutil.py", line 215, in rmtree
>>    os.remove(fullname)
>> WindowsError: [Error 32] The process cannot access the file because it is being used
by another process: 'testpyrepo\\_0.fdt'
>> 

Mime
View raw message