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
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
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
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().
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