Re: Error with plpython

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Efraín Déctor <efraindector(at)motumweb(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Error with plpython
Date: 2012-07-11 01:57:38
Message-ID: 4FFCDD92.9080805@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Ross 2012-07-11 02:30:04 Re: Transaction question
Previous Message Efraín Déctor 2012-07-11 00:34:39 Re: Error with plpython