pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: PEDRO PABLO SEVERIN HONORATO <ppseverin@miuandes.cl>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Help with plpython3u
Date: Wed, 10 Jun 2020 07:50:08 -0700
Message-ID: <13c85ed6-43ae-76e3-058d-97ccc435e96f@aklaver.com> (raw)
In-Reply-To: <CAB2K=JPem1Wk-6iegkcWy9ZQL9=ZQHTdC9EJLLrf+dJ3ZeZCWA@mail.gmail.com>
References: <CAB2K=JPRjrR6B5c=Vi8h0B8c4Wt=Y2wLRaita0dx2j4j7-n4aQ@mail.gmail.com>
	<630c303b-1c82-90dc-b602-54e461335fc6@aklaver.com>
	<CAB2K=JNLm1xkqZgtmTD1d-gbfjGTknxLRfK6Se4YbruOch-3rw@mail.gmail.com>
	<a4b58076-be83-77c9-fa66-0fd6f47c27d3@aklaver.com>
	<CAB2K=JM+Ch_XiKP-gEu0as5UQ=QpZpQtHK6RVhDu9tROD+Q_1w@mail.gmail.com>
	<e9067956-48b0-2d49-5eb8-eb9dc644d194@aklaver.com>
	<CAB2K=JPce=+SRfetfWCLTRmhZhvLCq_aeNU9RWkVDAZamQnaAA@mail.gmail.com>
	<d63a1aeb-1a24-179a-2f95-914284eac85b@aklaver.com>
	<CAB2K=JPem1Wk-6iegkcWy9ZQL9=ZQHTdC9EJLLrf+dJ3ZeZCWA@mail.gmail.com>

On 6/10/20 7:39 AM, PEDRO PABLO SEVERIN HONORATO wrote:
> Thank you Adrian, will see the link you sent me.
> 
> Thank you, Laurenz. I noticed that copying the DLL is not a good idea.
> How can I set a python path for postgres, so that I tell postgres "hey, 
> if you are looking for python see this path" and don't lose conda? 
> Because after following all Adrian's instructions and  after creating 
> the variable"*PYTHONHOME = C:\edb\languagepack\v1\Python-3.7*" and 

Just to be clear those where instructions from here, correct?:

https://www.enterprisedb.com/edb-docs/d/edb-postgres-advanced-server/user-guides/language-pack-guide...

> adding *%PYTHONHOME%* to the *PATH, *I get this message when I open 
> Anaconda Prompt:
> *"File "C:\Users\developer\Anaconda3\Scripts\conda-script.py", line 11, 
> in <module> from conda.cli import main ModuleNotFoundError: No module 
> named 'conda'"*

So when you did the Anaconda install:

https://docs.anaconda.com/anaconda/install/windows/

What did you check for the Advanced options in Step 8?

> *
> *
> Then, I removed the variable name PYTHONHOME and tried to execute again 
> Anaconda Prompt without any problem. So I think that postgres and conda 
> are like "fighting" for the PYTHONHOME variable name? Is this correct?
> 
> El mié., 10 jun. 2020 a las 10:08, Adrian Klaver 
> (<adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>>) escribió:
> 
>     On 6/9/20 10:38 PM, PEDRO PABLO SEVERIN HONORATO wrote:
>      > Thank you, Adrian. Will read about all this. By the way, the issue
>      > reappeared. For some reason, I had to reinstall Anaconda and had to
>      > delete the "PYTHONHOME" variable because I could not launch conda.
>      > Seems that they both fight for the same variable name?
>      > Is there a way to set it to two different names?
> 
>     See below for more information:
> 
>     https://docs.anaconda.com/anaconda/user-guide/faq/#installing-anaconda
>      >
>      > Thanks,
>      > PS
>      >
>      >
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (21+ messages)  latest in thread

Message-ID: <13c85ed6-43ae-76e3-058d-97ccc435e96f@aklaver.com>
Permalink:  ../13c85ed6-43ae-76e3-058d-97ccc435e96f@aklaver.com/
Also on:    postgresql.org/message-id/13c85ed6-43ae-76e3-058d-97ccc435e96f@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ppseverin@miuandes.cl
  Subject: Re: Help with plpython3u
  In-Reply-To: <13c85ed6-43ae-76e3-058d-97ccc435e96f@aklaver.com>
  References: <CAB2K=JPRjrR6B5c=Vi8h0B8c4Wt=Y2wLRaita0dx2j4j7-n4aQ@mail.gmail.com> <630c303b-1c82-90dc-b602-54e461335fc6@aklaver.com> <CAB2K=JNLm1xkqZgtmTD1d-gbfjGTknxLRfK6Se4YbruOch-3rw@mail.gmail.com> <a4b58076-be83-77c9-fa66-0fd6f47c27d3@aklaver.com> <CAB2K=JM+Ch_XiKP-gEu0as5UQ=QpZpQtHK6RVhDu9tROD+Q_1w@mail.gmail.com> <e9067956-48b0-2d49-5eb8-eb9dc644d194@aklaver.com> <CAB2K=JPce=+SRfetfWCLTRmhZhvLCq_aeNU9RWkVDAZamQnaAA@mail.gmail.com> <d63a1aeb-1a24-179a-2f95-914284eac85b@aklaver.com> <CAB2K=JPem1Wk-6iegkcWy9ZQL9=ZQHTdC9EJLLrf+dJ3ZeZCWA@mail.gmail.com> <13c85ed6-43ae-76e3-058d-97ccc435e96f@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox