Skip site navigation (1) Skip section navigation (2)

plpython module import errors

From: c k <shreeseva(dot)learning(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: plpython module import errors
Date: 2011-04-28 11:19:08
Message-ID: BANLkTikG=d4n2tvVH0+aBTyHJtwC=fgFqw@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-general
Hello,
I have installed postgresql 9 on fedora 14 having python 2.7. Now
created plpythonu language in my database and created a simple
function to calculate sum of two variables.
while importing math libbrary and executing the function i got the error
PL/Python: ImportError: No module named cmath

tried to search help for this error on net and tried various things
but nothing solved this.
What can I do to solve this error.
I can still work from python interpreter directly.
Thanks in advcance.
C P Kulkarni

Responses

pgsql-admin by date

Next:From: Sim ZacksDate: 2011-04-28 12:49:14
Subject: Re: plpython module import errors
Previous:From: Ray StellDate: 2011-04-28 02:03:56
Subject: Re: Please, i want exit here

pgsql-general by date

Next:From: Oleg BartunovDate: 2011-04-28 11:40:15
Subject: Re: GIN index not used
Previous:From: Vibhor KumarDate: 2011-04-28 10:18:36
Subject: Re: Converting between varchar and float when updating

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group