Re: Error with plpython - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Error with plpython
Date
Msg-id 4FFCDD92.9080805@gmail.com
Whole thread Raw
In response to Re: Error with plpython  (Efraín Déctor <efraindector@motumweb.com>)
Responses Re: Error with plpython
List pgsql-general
On 07/10/2012 05:34 PM, Efraín Déctor wrote:
> We tested, the code directly into Python:
>
> from googlemaps import GoogleMaps
> gmaps= GoogleMaps()
> address =  gmaps.latlng_to_address(18.835124317498853,-97.11448417315677)
> repr(address)
>
> And on both servers work without a problem. My guess is that something
> about OpenSSL on the production server is not working with plpython. But
> I don't know how to fix this.

So in your function add the following to the beginning and see what it
returns on each server. More to the point is there a difference?:

import sys
plpy.notice(sys.path)

>
> Thanks

>


--
Adrian Klaver
adrian.klaver@gmail.com



pgsql-general by date:

Previous
From: Efraín Déctor
Date:
Subject: Re: Error with plpython
Next
From: Jeff Ross
Date:
Subject: Re: Transaction question