[pylucene-dev] Errors building Pylucene
Andi Vajda
vajda at osafoundation.org
Thu Mar 13 07:41:14 PDT 2008
On Thu, 13 Mar 2008, JLIST wrote:
> It's my first time trying PyLucene with JCC so please bare with me.
>
> JCC seems to build fine with "python setup.py install". Once it's
> built, I didn't really know how to verify it. So I just tried
> import jcc, and got this error: (maybe this isn't an error at all)
>
>>>> import jcc
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "jcc/__init__.py", line 30, in <module>
> from _jcc import initVM
> ImportError: No module named _jcc
Apparently, it didn't build fine since Python can't find the _jcc extension.
Did you 'build' before 'install' ?
> Then I ran make from Pylucene directory, it ran for a while.
> In the end, it prints the error below. It seems that I'm missing
> some environment variables?
>
> ...
> A lucene-java-2.3.1/README.txt
> A lucene-java-2.3.1/BUILD.txt
> A lucene-java-2.3.1/.cvsignore
> Exported revision 636706.
> cd lucene-java-2.3.1; -Dversion=2.3.1
> /bin/sh: -Dversion=2.3.1: command not found
> make: *** [lucene-java-2.3.1/build/lucene-core-2.3.1.jar] Error 127
This is probably because you have no definition for ANT in the Makefile so
$(ANT) expands into nothing.
Andi..
More information about the pylucene-dev
mailing list