Hi everyone,
I've been facing a weird error when running the first example in the LIA
series - Indexer.py. I'm using FC5 and the compiled PyLucene version for
Ubuntu. Might anyone have an idea why I'm facing these?
Cheers,
Viksit
-- Error messages begin --
[EMAIL PROTECTED] LuceneInAction]$ sudo python Indexer.py /home/viksit
/home/viksi
t
Indexing /home/viksit/.kde/share/apps/basket/baskets/basket3/note3.txt
Traceback (most recent call last):
File "Indexer.py", line 7, in ?
Indexer.main(sys.argv)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line 45, in main
numIndexed = cls.index(indexDir, dataDir)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line 58, in index
cls.indexDirectory(writer, dataDir)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line 74, in indexDirectory
cls.indexDirectory(writer, path)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line
74, in indexDirectory
cls.indexDirectory(writer, path)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line
74, in indexDirectory
cls.indexDirectory(writer, path)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line
74, in indexDirectory
cls.indexDirectory(writer, path)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line
74, in indexDirectory
cls.indexDirectory(writer, path)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line
74, in indexDirectory
cls.indexDirectory(writer, path)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line
72, in indexDirectory
cls.indexFile(writer, path)
File
"/applications/PyLucene-2.0.0/samples/LuceneInAction/lia/meetlucene/Indexe
r.py", line
86, in indexFile
Field.Store.YES, Field.Index.TOKENIZED))
PyLucene.InvalidArgsError: (<type 'PyLucene.Field'>, '__init__',
('contents', <li
a.util.Streams.InputStreamReader object at 0xb7ce1c8c>,
<Field_Store: YES>, <Fiel
d_Index: TOKENIZED>))
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev