plpython module loading errors

From: "Darren Mackay" <darren(at)darrenmackay(dot)com>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: plpython module loading errors
Date: 2003-04-13 20:21:08
Message-ID: 035C9F7CE28601428BBB5B051C9F77F20177D1@orion.mackay.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi All,

your thoughts on "exceptions.ImportError: No module named _sre" below:

syslog_test=# CREATE OR REPLACE FUNCTION test (text) RETURNS TEXT AS'
syslog_test'# import re syslog_test'# syslog_test'# tmp_msg = args[0]
syslog_test'# syslog_test'# tmp_msg=re.sub(".+\%", "", tmp_msg)
syslog_test'# return tmp_msg syslog_test'# syslog_test'# ' LANGUAGE
'plpython'; CREATE FUNCTION syslog_test=# syslog_test=# select
test('test1 % test2');
ERROR: plpython: Call of function `test' failed.
exceptions.ImportError: No module named _sre
syslog_test=#

the following works:

syslog_test=# CREATE OR REPLACE FUNCTION test (text) RETURNS TEXT AS'
syslog_test'# syslog_test'# tmp_msg = args[0] syslog_test'#
syslog_test'# return tmp_msg syslog_test'# syslog_test'# ' LANGUAGE
'plpython'; CREATE FUNCTION syslog_test=# syslog_test=# select
test('test1 % test2');
test
---------------
test1 % test2
(1 row)

I am runnging pgsql 7.3.2 rh8, pg was compiled using:

./configure \
--with-python

make
make install

tia,

Darren Mackay

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruno Wolff III 2003-04-14 01:05:28 Re: export to excel format
Previous Message Magnus Hagander 2003-04-12 19:11:04 Re: libpq.dll