Re: import plpy

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Kent Tenney <ktenney(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: import plpy
Date: 2016-01-29 16:00:14
Message-ID: 56AB8C8E.5050804@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 01/29/2016 04:13 AM, Kent Tenney wrote:
>>From the Packt book "Postgresql Server Programming"
>
> "you can have a similar environment in your Python development
> environment using the plpy module.
>
> Just put the module in your path and do import plpy before you try
> running your prospective PL/PythonU functions in an ordinary
> interpreter."
>
> I've been unable to locate such a thing.

Pretty sure the authors are referring to this:

http://www.postgresql.org/docs/9.4/interactive/plpython-database.html

From what I can see everything is wrapped up(on my install) in
plpython2.so. Trying to import that gets:

>> import plpython2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: ./plpython2.so: undefined symbol: error_context_stack

Might want to send the authors an email asking how they manage it.

>
> Suggestions?
>
> Thanks,
> Kent
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2016-01-29 16:51:50 Re: Statement timeout
Previous Message Achilleas Mantzios 2016-01-29 15:39:35 Re: BSD initdb without ICU support and switch later