Re: postgresql server crash on windows 7 when using plpython - Mailing list pgsql-general

From Adrian Klaver
Subject Re: postgresql server crash on windows 7 when using plpython
Date
Msg-id CANf5jyPA2Sq1vaHGk0VCT6yPGyiiHspuxFyK3eWYV+xsGR04TA@mail.gmail.com
Whole thread Raw
In response to postgresql server crash on windows 7 when using plpython  (c k <shreeseva.learning@gmail.com>)
Responses Re: postgresql server crash on windows 7 when using plpython
List pgsql-general


On Tue, Aug 9, 2011 at 7:54 AM, c k <shreeseva.learning@gmail.com> wrote:
Dear Friends,
For client requirements, I am testing postgresql 9.0.4 on windows 7 with plpython. First I installed python 2.7 and then added python installation path to windows PATH variable. Then installed postgresql from one-click installer. Server started and every thing was ok. Then I go to create plpythonu in a database. But it failed. After searching, I found that it needs python 2.6. So I again installed python 2.6 and then dropped plpython from database and created again. It was successful. Normal python functions returning text etc. are working but when conatining

import sys
from uuid import getnode as get_mac
mac = get_mac()
return mac

fails. What will be the reason?

What would be the error message(s)?

The actual function code would also be helpful, to put things into context.
 

Advance thanks for your help.

Chaitanya Kulkarni



--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: Problem with planner
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: Problem with planner