Hi,
after a long time I'm in need to reinstall pylucene on my Gentoo system.
Here, Lucene-3.5.0, oracle-jdk-bin-1.7.0.21 and Python-2.7.4 is
installed.
I fetched the pylucene_3_5 branch of
svn.apache.org/repos/asf/lucene/pylucene/
Patching setuptools and installing jcc did work.
But trying to build pylucene itself fails with:
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in
_run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File
"/usr/lib64/python2.7/site-packages/JCC-2.16-py2.7-linux-x86_64.egg/jcc/__main__.py",
line 107, in <module>
cpp.jcc(sys.argv)
File
"/usr/lib64/python2.7/site-packages/JCC-2.16-py2.7-linux-x86_64.egg/jcc/cpp.py",
line 655, in jcc
raise ValueError, (cls, 'python class name already in use, use
--rename', name, pythonNames[name])
ValueError: (<Class: class org.apache.lucene.analysis.nl.DutchStemmer>,
'python class name already in use, use --rename', u'DutchStemmer',
<Class: class org.tartarus.snowball.ext.DutchStemmer>)
In addition there were some warnings:
Warning: renaming static method 'toString' on class java.lang.Byte
to 'toString_' since it is shadowed by non-static method of same name.
Warning: renaming static method 'getCurrentSegmentFileName' on class
org.apache.lucene.index.SegmentInfos to 'getCurrentSegmentFileName_'
since it is shadowed by non-static method of same name.
Warning: renaming static method 'toString' on class
java.lang.Boolean to 'toString_' since it is shadowed by non-static
method of same name.
Warning: renaming static method 'foldToASCII' on class
org.apache.lucene.analysis.ASCIIFoldingFilter to 'foldToASCII_' since
it is shadowed by non-static method of same name.
Warning: renaming static method 'copy' on class
org.apache.lucene.store.Directory to 'copy_' since it is shadowed by
non-static method of same name.
Warning: renaming static method 'toString' on class java.lang.Long
to 'toString_' since it is shadowed by non-static method of same name.
What am I missing?
Many thanks for a hint,
Helmut.