[pylucene-dev] Installing PyLucene - Import Error
peacech at gmail.com
Thu Feb 14 05:59:11 PST 2008
On Thu, Feb 14, 2008 at 8:37 PM, João Rodrigues <anaryin at gmail.com> wrote:
> Tried the GCJ and the JCC versions but I still can't get PyLucene to work..
> Here goes the error:
> >>> import lucene
> Traceback (most recent call last):
> File "<pyshell#5>", line 1, in <module>
> import lucene
> File "C:\Python25\Lib\site-packages\lucene\__init__.py", line 3, in
> import os, _lucene
> ImportError: DLL load failed: The specified module could not be found.
Did you have set the OS path to the directory containing jvm.dll of
your java installation. I usually edit the __init__.py in lucene
os.environ['PATH'] = r'C:\Program Files\JDK16\jre\bin\client;' +
where C:\Program Files\JDK16 should be substituted for the path of
your JDK installation.
Other way would be to edit your environment variables or set PATH=...
in command line.
More information about the pylucene-dev