[pylucene-dev] pylucene and 2gb limit of files

Andi Vajda vajda at osafoundation.org
Tue Aug 8 09:28:39 PDT 2006


On Tue, 8 Aug 2006, Yura Smolsky wrote:

> Hello, Andi.
>
> AV>    2. implement an FSDirectory in python. For an example, see the
> AV>       Test_PythonDirectory.py unit tests. I don't expect python to have the
> AV>       same 2gb file size limit.
>
> hmm. this test fails for me on windows. here is excerpt:

I believe I've seen this too. Patches are welcome :)

Andi..

>
> ======================================================================
> ERROR: test_removeDocuments (__main__.PythonDirectoryTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "D:\workshop\PyLucene\test\test_PyLucene.py", line 200, in test_removeDocuments
>    self.test_indexDocument()
>  File "D:\workshop\PyLucene\test\test_PyLucene.py", line 73, in test_indexDocument
>    self.closeStore(store, writer)
>  File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 175, in closeStore
>    if arg: arg.close()
>  File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 137, in renameFile
>    os.path.join( self.path, tname ) )
> OSError: [Errno 17] File exists
>
> ======================================================================
> ERROR: test_searchDocuments (__main__.PythonDirectoryTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "D:\workshop\PyLucene\test\test_PyLucene.py", line 137, in test_searchDocuments
>    self.test_indexDocument()
>  File "D:\workshop\PyLucene\test\test_PyLucene.py", line 73, in test_indexDocument
>    self.closeStore(store, writer)
>  File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 175, in closeStore
>    if arg: arg.close()
>  File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 137, in renameFile
>    os.path.join( self.path, tname ) )
> OSError: [Errno 17] File exists
>
> ======================================================================
> ERROR: test_searchDocumentsWithMultiField (__main__.PythonDirectoryTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "D:\workshop\PyLucene\test\test_PyLucene.py", line 153, in test_searchDocumentsWithMultiField
>    self.test_indexDocument()
>  File "D:\workshop\PyLucene\test\test_PyLucene.py", line 73, in test_indexDocument
>    self.closeStore(store, writer)
>  File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 175, in closeStore
>    if arg: arg.close()
>  File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 137, in renameFile
>    os.path.join( self.path, tname ) )
> OSError: [Errno 17] File exists
>
> ----------------------------------------------------------------------
> Ran 10 tests in 0.266s
>
> FAILED (errors=10)
>
> --
> Yura Smolsky,
> http://altervisionmedia.com/
>
>
>


More information about the pylucene-dev mailing list