On Thu, 3 Nov 2011, A. Heifets wrote:
I got the build working by changing the import line in
/usr/lib64/python2.4/site-packages/jcc/__init__.py from
import os, sys
to
import os, sys, _jcc
That's unexpected. JCC should get installed as an egg. For example, on my
system, its installation dir looks like:
.../lib/python2.6/site-packages/JCC-2.11-py2.6-macosx-10.6-x86_64.egg
Hmmm.. I don't have any eggs:
$ ls /usr/lib64/python2.4/site-packages/*.egg
ls: /usr/lib64/python2.4/site-packages/*.egg: No such file or directory
Are you using setuptools or just distutils ?
I followed the directions at
http://lucene.apache.org/pylucene/jcc/documentation/install.html,
namely
$ python setup.py build
$ sudo python setup.py install
Ok, I can only guess then that you're not using setuptools and that you
found a bug when distutils only is used.
I'll add the explicit import as you did to work around this issue.
Andi..