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 1jj94R-0001OA-4X for pgsql-general@arkaria.postgresql.org; Wed, 10 Jun 2020 22:19:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jj94P-00055K-2C for pgsql-general@arkaria.postgresql.org; Wed, 10 Jun 2020 22:19:41 +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 1jj94N-00055D-U2 for pgsql-general@lists.postgresql.org; Wed, 10 Jun 2020 22:19:40 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jj94K-0003Ra-9V for pgsql-general@lists.postgresql.org; Wed, 10 Jun 2020 22:19:39 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BE7D05C010D; Wed, 10 Jun 2020 18:19:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 10 Jun 2020 18:19:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= from:subject:to:cc:references:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=M CLmw89cRo9jDmR9K4oOFpCjYV/SDWg2SvxXOv9SVQ8=; b=K77pRMIeGi9jFDI7K lrmgwW84lmceKUxJTdqEjnwp0+FSixTbB/FxigXieom807pWlkYe9J2bbUyjMrQ9 odJ8u43/gr/pVmGfWLbkh2HVX8vx4PHdsVAg6Xh7wcFFROtdTBcYyJflxG4wi8vq /qJLKGhz5oumu13FHnOnkAyjRfoJtyLXZx90mbCTT9ypsdbKJVJ+I+zGW5MzOCFK 6JzuN0TBakJDv2JaHiOJMrFivz+OENs7dDaMCQvq4mbHtYlrbSOcgQZKgRTBo9IS i3oB+R/gPx/KQni03/u5pMtBU7S8PG/0q3SyMkhZp0NBb2ieuZkyz9i2rHC0GIab pCVow== 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=MCLmw89cRo9jDmR9K4oOFpCjYV/SDWg2SvxXOv9SV Q8=; b=WUFaQcB6qH+W1GDGDrMe7hOuZ3zI2xZWJ6qhFDPlcN3cqxvWrXQSe5vov vUovuI/cFKpVD7t+AtbSlKvLtQ04elQuDogrSvBTXiFtk2on5ufWkiTqliBzHkBU H3W+DhLQkm7crcuiZDnPLcaWk+5uMuWkABS2Aelyt70xOM0WJF/m7hbG5N+Ap4x8 kcN3k+WZAz0Uj/ZfgPHhP8IHTpG+HXCVWNgJK/WFnK3ffDW6mzTpP3fdMhulRW9u vXJWaFka53FHbwMP+j0PIbWfdPlOeq+QfrlLT1I/f2xVoNUvlAATHodNSnEiVspd 6ZF4t3APTLpxcqZOCkmpXyE7yEhpg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehjedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffuvfhfkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeefhfejjeelffekudffgeetieegveekveevffetgfeg geegteelgeduhfffleevkeenucffohhmrghinhepshhtrggtkhhovhgvrhhflhhofidrtg homhenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvh gvrhdrtghomh 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 9DAF43060F09; Wed, 10 Jun 2020 18:19:33 -0400 (EDT) From: Adrian Klaver Subject: Re: Help with plpython3u To: PEDRO PABLO SEVERIN HONORATO Cc: pgsql-general@lists.postgresql.org References: <630c303b-1c82-90dc-b602-54e461335fc6@aklaver.com> <13c85ed6-43ae-76e3-058d-97ccc435e96f@aklaver.com> <36efd504-84ac-6190-0d63-a95ffe855c56@aklaver.com> Message-ID: <4e38a0f3-abbe-6da1-956e-d28eaf8fbfad@aklaver.com> Date: Wed, 10 Jun 2020 15:19:32 -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: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.klaver@aklaver.com