On Thu, Feb 14, 2008 at 8:37 PM, João Rodrigues <[EMAIL PROTECTED]> 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
> <module>
>     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
directory, adding

import os

os.environ['PATH'] = r'C:\Program Files\JDK16\jre\bin\client;' +
os.environ['PATH']

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.

---
Charles
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to