Re: postgresql server crash on windows 7 when using plpython

From: c k <shreeseva(dot)learning(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
Cc: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>, pgsql-general(at)postgresql(dot)org
Subject: Re: postgresql server crash on windows 7 when using plpython
Date: 2011-08-24 17:06:37
Message-ID: CAN2Y=uNO2a5QK7ZVZyuH-PcnQ0ZDBd181W=RJGtDMFC3z8HE1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

No,
I have added the python directory in the PATH. Another thing is I created
another language plpython2u and succeeded. Still I will try to figure out
the problem.

Regards,

Chaitanya Kulkarni

On Wed, Aug 24, 2011 at 7:11 PM, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>wrote:

> On Tuesday, August 23, 2011 11:10:19 pm c k wrote:
> > Yes,
>
> > ImportError: No module named site
> > ImportError: No module named site
> > ImportError: No module named site
> >
> > This last line is added every time I call any plpython function. Here is
> > the simple plpython function.
> >
> > CREATE OR REPLACE FUNCTION software.pyver()
> > RETURNS text AS
> > $BODY$
> > import sys
> > #return sys.version
> > return sys.path
> > $BODY$
> > LANGUAGE plpythonu VOLATILE
> > COST 100;
> >
> > What is the problem?
>
> plpythonu cannot find the Python installation. site is a module imported by
> default by the Python interpreter. When you removed 2.7 you probably also
> removed the PATH entries for Python. So to recap, previously you where
> running
> plpythonu compiled with 2.6 using a PATH leading to 2.7, hence the crashes.
> Now
> you have 2.7 out of the way, but no PATH to 2.6.
>
> >
> >
> > Chaitany Kulkarni
> >
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)gmail(dot)com
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jorge Augusto Llamas Caamaño 2011-08-24 17:11:34 Recuperar una base de datos en un tablespace en otro servidor
Previous Message Adrian Klaver 2011-08-24 13:41:51 Re: postgresql server crash on windows 7 when using plpython

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2011-08-24 17:14:57 Re: Feature Request: DDL + RegExp - definitions
Previous Message John R Pierce 2011-08-24 16:42:35 Re: Explain Analyze understanding