Re: Installing PLPython - Version Problem

From: ray <Ray(dot)Joseph(at)CDICorp(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Installing PLPython - Version Problem
Date: 2009-03-30 13:28:20
Message-ID: 9fc87225-7ae1-4480-9be8-f740d6b90f07@j12g2000vbl.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mar 30, 2:55 am, dp(dot)(dot)(dot)(at)pgadmin(dot)org (Dave Page) wrote:
> On Mon, Mar 30, 2009 at 1:51 AM, ray <Ray(dot)Jos(dot)(dot)(dot)(at)cdicorp(dot)com> wrote:
> > I am trying to get Python 2.6 and PostgreSQL 8.3 to work together
> > under Windows 2000.
>
> > When I try to add Python to PostgreSQL via:
> > createlang plpythonu dbname
>
> > But when doing so, I get an error:
> > createlang: language installation failed: ERROR:  could not load
> > library "C:/Program Files/PostgreSQL/8.3/lib/createlang: language
> > installation failed: ERROR:  could not load library "C:/Program Files/
> > PostgreSQL/8.3/lib/plpython.dll": The specified module could not be
> > found."
>
> > So I Used "depends" to walk the references of plpython.dll, I found
> > that it can not find python25.dll.  Since I have 2.6, only
> > python26.dll is in ...system32.
>
> > 1) The first question is how do I get this stack to look for the 2.6
> > version?
>
> Recompile PostgreSQL to use Python 2.5.
>
> Any renaming etc. will lead to pain. The DLLs include the version
> number precisely because they are not compatible.
>
> --
> Dave Page
> EnterpriseDB UK:  http://www.enterprisedb.com
>

Dave,

I am sorry for not providing a clear description of my problem. I
want to us Python 2.6 but the PLPython seems to me looking for 2.5
which is not on my machine. Is there a way to have PostgreSQL work
with Python 2.6?

Ray

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-03-30 13:53:10 Re: [fulltext] GIN indexes - OR search
Previous Message Marco Colombo 2009-03-30 13:15:02 Re: Maximum transaction rate