I have the Pydev plugin installed in my Eclipse, and I am calling PyLucene in my python code. Lucene is in the PYTHONPATH and hence
import lucene
gives no errors. But trying to use anything derived from lucene class gives 'unresolved import' error. For example,
from org.apache.lucene.analysis.standard import StandardAnalyzer
from org.apache.lucene.index import DirectoryReader
from org.apache.lucene.queryparser.classic import QueryParser
from org.apache.lucene.search import IndexSearcher
from org.apache.lucene.store import SimpleFSDirectory
from org.apache.lucene.util import Version
all the lines above give this error. Further, this code works perfectly well from commandline in my bash-shell. So, I made sure that my eclipse uses the same values for PATH, LD_LIBRARY_PATH and PYTHONPATH as I am using in my shell. However, the error still persists.
What could be going wrong here?