Re: ImportError: DLL load failed: The specified module could not be found.

2011-11-08 Thread Jiang Fung Wong
I have isolated the problem. The following gives an error drop function testing(); CREATE FUNCTION testing() RETURNS text AS $$ import ctypes try: ctypes.windll.LoadLibrary("D:\\jcc.dll") except: import traceback plpy.error(traceback.format_exc()) return '' $$ LANGUAGE plpythonu; se

Re: ImportError: DLL load failed: The specified module could not be found.

2011-11-08 Thread Jiang Fung Wong
On Tue, Nov 8, 2011 at 4:20 PM, Andi Vajda wrote: > > On Nov 8, 2011, at 0:08, Jiang Fung Wong wrote: > >> I have added the directory containing jcc.dll, which is the jcc egg, >> to PATH. It is not necessary, because the code in jcc\__init__.py >> automatically adds the directory to PATH. Anyway

Re: ImportError: DLL load failed: The specified module could not be found.

2011-11-08 Thread Andi Vajda
On Nov 8, 2011, at 0:08, Jiang Fung Wong wrote: > I have added the directory containing jcc.dll, which is the jcc egg, > to PATH. It is not necessary, because the code in jcc\__init__.py > automatically adds the directory to PATH. Anyway I have added it, and > the result is the same. Then it co

Re: ImportError: DLL load failed: The specified module could not be found.

2011-11-08 Thread Jiang Fung Wong
I have added the directory containing jcc.dll, which is the jcc egg, to PATH. It is not necessary, because the code in jcc\__init__.py automatically adds the directory to PATH. Anyway I have added it, and the result is the same. I couldn't not import lucene module, so there is way to run initVM().

Re: ImportError: DLL load failed: The specified module could not be found.

2011-11-07 Thread Andi Vajda
On Nov 7, 2011, at 22:28, Jiang Fung Wong wrote: > Dear All, > > I got this error when trying to import pylucene inside Postgres PL/Python. > > ERROR: ('Traceback (most recent call last): > File "", line 17, in __plpython_procedure_testing_1517611 > File > "d:\\ve\\Lib\\site-packages\\luce