plpython error since upgrading from 7.x to 8.x

Lists: pgsql-general
From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: plpython error since upgrading from 7.x to 8.x
Date: 2005-05-25 09:04:22
Message-ID: 20050525090422.71418.qmail@web52904.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

I had a plpythonu function that worked in 7.x but
since upgrading to 8.x it's giving this error:

ERROR: plpython: function "notify" failed
DETAIL: exceptions.TypeError: unsubscriptable object

plpythonu IS installed in the database in which I'm
trying to use the function. Any idea what the problem
is?

Thanks,
CSN

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


From: Michael Fuhr <mike(at)fuhr(dot)org>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plpython error since upgrading from 7.x to 8.x
Date: 2005-05-25 12:26:15
Message-ID: 20050525122615.GA41345@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Wed, May 25, 2005 at 02:04:22AM -0700, CSN wrote:
>
> I had a plpythonu function that worked in 7.x but
> since upgrading to 8.x it's giving this error:
>
> ERROR: plpython: function "notify" failed
> DETAIL: exceptions.TypeError: unsubscriptable object

Could you post a simple, self-contained example that exhibits this
problem? Debugging would be easier if we could see what you're doing.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/