From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | c k <shreeseva(dot)learning(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 13:41:51 |
Message-ID: | 201108240641.51863.adrian.klaver@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
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
From | Date | Subject | |
---|---|---|---|
Next Message | c k | 2011-08-24 17:06:37 | Re: postgresql server crash on windows 7 when using plpython |
Previous Message | Florian Weimer | 2011-08-24 08:59:46 | Re: Database alias |
From | Date | Subject | |
---|---|---|---|
Next Message | MirrorX | 2011-08-24 14:11:30 | strange exclusive lock in relation --- ideas |
Previous Message | Bruce Momjian | 2011-08-24 12:33:40 | Re: [GENERAL] documentation suggestion |