I have been developing a Python program using the Pydev(2.5.0) plugin in Eclipse Helios on Ubuntu OS 11.4.
The program uses lucene (core 3.6) library. Lucene was installed using jcc.
Previously I developed it with a text editor and ran on the command line using python xxx.py
and there was no problem regarding lucene libraries.
Then, I imported the project to Eclipse IDE. The other source files still run as-is, but the program cannot locate the basic classes of lucene library.
import lucene # no error
but if I try to import StandardAnalyzer
or any other class, I get an error:
from lucene import StandardAnalyzer #error: unresolved import
My configuration:
Grammer Version: 2.7
Python interpreters: usr/bin/python2.7
Libraries include:
I tried the add the lucene folder to the external libraries but it didn't help. I have found this path by using command line python interpreter with these commands.
import lucene
print lucene.__path__
Though a similar path is already in the library (see image. 2nd library)
['/usr/local/lib/python2.7/dist-packages/lucene-3.6.0-py2.7-linux-i686.egg/lucene']
I would appreciate your comments about this problem. Thanks.