Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jj23V-00041M-72 for pgsql-general@arkaria.postgresql.org; Wed, 10 Jun 2020 14:50:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jj23U-0000d6-4z for pgsql-general@arkaria.postgresql.org; Wed, 10 Jun 2020 14:50:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jj23T-0000cz-T2 for pgsql-general@lists.postgresql.org; Wed, 10 Jun 2020 14:50:15 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jj23R-0001GL-2P for pgsql-general@lists.postgresql.org; Wed, 10 Jun 2020 14:50:15 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C4C505D7; Wed, 10 Jun 2020 10:50:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 10 Jun 2020 10:50:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=T NR+V8ISmjRO8WOO5NJKmYtMrfspbwKnPQtx5ZkKrb0=; b=XRjsHPjD4KmG5Wz6L jxgqMbxjZSnXR4+QHp56/ZNrkGaNQwN9L+aD0UvmBxPAK8bqKqvJwSQhENjzHt6N QqreHhlhs1mTK+RFiS7LboRmx0dGPUjeNhKGJZcm3glaGC2daWGGoFdRfuEipUNS lA7scSS+TYzv7hmjCRZslvig+erw54CG+vD9FIq5qgjC53K3ZwAs5gMSDSmp+eKk zLSGse7Zq3Fc5BsuM7yQZaYKnEGqdD3lvuqN3SBnJ6dOIzqRHA91QwHOLJBD0Atb XzaWZuSuQwPqI45nz19kcmsVWMbEkJhPXg+3sh9CaYwLWoqazdQ/mq0bKH5bZUCh uJinA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=TNR+V8ISmjRO8WOO5NJKmYtMrfspbwKnPQtx5ZkKr b0=; b=gmJD6SG4ZCHFbTz5W+TZ9kbS0S0VN0iNVysikUTPgluwGq0ciQV7QmiWO lY0EwY/rZM1TFTPVCpzUMe8ArwKKIwWa24qlNRP5zpyTq3f7TAX2XRcZDvREpxCP jDlXfSRrnbdKJxATmIHDCLZxmnkp4yq4A49reVsMwnLSLf1D42jYe9dvP72IUs+c KddQigxUTOmlj3MCLY4b7FonH7u/HRW9eWYjbFAC6bQvn8WWZcsJLnE/CymD4Zqr aBh4iV90qF6R/Um2oJkyTu26+TT6swyUBqP0VKk0toOlr0nsobN2PXqwJxzPHlo8 Jr0pCthIC0o+MncLBoh8nTWddtgFA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehiedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpedufefhteetkeeuleevkeeujeegheefvefggfelfefg vdejjeetgeduuedugfeuheenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmpdgrnhgrtghonhgurgdrtghomhenucfkphepjeehrddujedvrdehrddvfedunecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrd hklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 6D727328006A; Wed, 10 Jun 2020 10:50:09 -0400 (EDT) Subject: Re: Help with plpython3u To: PEDRO PABLO SEVERIN HONORATO Cc: pgsql-general@lists.postgresql.org References: <630c303b-1c82-90dc-b602-54e461335fc6@aklaver.com> From: Adrian Klaver Message-ID: <13c85ed6-43ae-76e3-058d-97ccc435e96f@aklaver.com> Date: Wed, 10 Jun 2020 07:50:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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/12/EDB_Postgres_Language_Pack_Guide.1.08.html# > 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 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 > (>) 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 > -- Adrian Klaver adrian.klaver@aklaver.com