Re: plpythonu on 7.4

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: elein <elein(at)varlena(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: plpythonu on 7.4
Date: 2005-01-22 06:11:02
Message-ID: 20050122061102.GA61579@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Jan 22, 2005 at 12:57:37AM -0500, Tom Lane wrote:
> elein(at)varlena(dot)com (elein) writes:
> > createlang -U postgres 'plpythonu' template1
> > createlang: language installation failed: ERROR: could not load
> > library "/usr/local/pgsql74/lib/plpython.so":
> > /usr/local/pgsql74/lib/plpython.so: undefined symbol: PyDict_Copy
>
> I'd bet on a python version issue, viz plpython expecting a newer
> version of python than you have installed.

Hmmmm...Python 2.3.4 isn't very old, and the source code does contain
a PyDict_Copy() function. The only newer version is 2.4, and it
was released in late November. I was wondering if it was a dynamic
linking issue, like plpython.so not finding libpython*.

Does PostgreSQL's configure script check versions for Perl, Python,
Tcl, etc.? If the version matters then configure ought to complain
about it.

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ralph van Etten 2005-01-22 10:14:20 serialization errors when inserting new records
Previous Message Tom Lane 2005-01-22 05:57:37 Re: plpythonu on 7.4