Re: Help with plpython3u

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: PEDRO PABLO SEVERIN HONORATO <ppseverin(at)miuandes(dot)cl>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Help with plpython3u
Date: 2020-06-10 22:19:32
Message-ID: 4e38a0f3-abbe-6da1-956e-d28eaf8fbfad@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/10/20 10:39 AM, PEDRO PABLO SEVERIN HONORATO wrote:
> I'm sorry, when I try to create a plpython3u function, the database
> tells me:
>
> "*ERROR: could not load library "C:/Program
> Files/PostgreSQL/12/lib/plpython3.dll": The specified module could not
> be found. SQL state: 58P01*"
>
> If I try to execute the function, then the database crashes.
>

Alright that was not fun. I pulled up an Windows 7 machine and installed
Anaconda and Postgres from EDB. I installed Anaconda with the defaults
you mentioned. I could not get Anaconda and Postgres to work together
with regards to Python. As you have found the PYTHONHOME setting
Postgres needs is picked up by Anaconda and prevents it from starting.
Dropping PYTHONHOME allows Anaconda to work but causes plpython3u to
fail. To me the solution would be to have something like EDB_PYTHONHOME
that only the Postgres install would use. I could not find anything like
that though. I'm out of ideas. I now remember why I don't use Windows:(
I was going to point you at the EDB forums, but they don't exist
anymore. I guess you have to ask questions on Stackoverflow:

https://stackoverflow.com/questions/tagged/enterprisedb

I would try there.

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message PEDRO PABLO SEVERIN HONORATO 2020-06-10 23:35:35 Re: Help with plpython3u
Previous Message Adrian Klaver 2020-06-10 17:44:31 Re: Help with plpython3u