From: | "email lists" <lists(at)darrenmackay(dot)com> |
---|---|
To: | <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | plpython module loading errors |
Date: | 2003-04-14 09:23:10 |
Message-ID: | 035C9F7CE28601428BBB5B051C9F77F201329E@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
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-04-14 16:40:01 | Re: [GENERAL] Problem about pgsql's column alias |
Previous Message | Tom Lane | 2003-04-14 05:44:05 | Re: Problem about pgsql's column alias |