Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fGBJg-00074t-53 for pgsql-general@arkaria.postgresql.org; Tue, 08 May 2018 22:42:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fGBJe-0004Fq-Ov for pgsql-general@arkaria.postgresql.org; Tue, 08 May 2018 22:42:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fGBFV-0004Ba-FH for pgsql-general@lists.postgresql.org; Tue, 08 May 2018 22:38:21 +0000 Received: from mail-yb0-x22d.google.com ([2607:f8b0:4002:c09::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fGBFS-0007PN-7I for pgsql-general@lists.postgresql.org; Tue, 08 May 2018 22:38:20 +0000 Received: by mail-yb0-x22d.google.com with SMTP id f3-v6so3314409ybg.13 for ; Tue, 08 May 2018 15:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=5BfBYOQgM/zUB4aHvwL+DYXrKBV3xcs9tw8KS25tRew=; b=dlkY+PVWREiPl84BhhS5r/tvGu17uKJkyGImp1niNDzwNWj8JemyJL7Z/3cPkWnLfM Mq+B9tPNn5Cvs8cBfeoo7COiKf8LwEcyrPk6BsFT9d/2Qb/B6kl/avh4x6z9mkz0ZcN6 90K5GVCNoAs9Ix6UMavhqa16u4oZTBBjGfxnaK6jts1y5CG/+B2d6Hl1iI/cpIBeyeo9 n2i5p+vRgctAOfT+u/Dm1V5J8T534SMnx5ATQGbJBoZhS3W3Xa922XU3QpbFwkqXTMnm nd7Jkf1V3oznqXkp+EPy+8f1vZ7UuBDIxLMrf64T2kqndgw+xmEuX4RNun4IzrtbnK42 nvAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=5BfBYOQgM/zUB4aHvwL+DYXrKBV3xcs9tw8KS25tRew=; b=fB49NNSZImmrfJgyi1yzQ3yUaI7PPOErYToaPjSwZqTD/K0TFiWxHGUEid87EDvJFa 1pXagerSMxullH/HbKwYFTS/r+VQ8WJsXUazBF9Ooy1csoP8J66Ck5yVorfJemVrK+H9 Ejg+6JA8sxLpB87lMSSW7qujWWbOeq2u0a0n1bcyn9Fi5v0iNs2L6+S5Ssne6Y6OoGHe LiVQbOsH9RXpWbORAEDxGE6W8BF150KDoWnfKColFDMm8jsZVn1FOO0eZGbp4rCNxrqU UZOtnAhpM7XajIQIHP6Ko/PF18/IHXY5WUHUmtk9UJ1OH6NT+oP0JTJePUEFW1wS9tXY 2OtA== X-Gm-Message-State: ALKqPwc/WEu90qiNLgR1w+D+qU7Z4XsSJ5wDj6F35RcxuLP5xhmSENQ5 WoGT9mLa5uJ61G42D4dfPlCj7tE8 X-Google-Smtp-Source: AB8JxZpXq+WeXkzleQnF2h6iEkspZQe3QsBo91SQZ1HtpN/dZThVJl2ephOuWdjU5iltk2G/rmNfLg== X-Received: by 2002:a25:d811:: with SMTP id p17-v6mr7517535ybg.157.1525819096146; Tue, 08 May 2018 15:38:16 -0700 (PDT) Received: from [192.168.1.159] (c-75-66-195-21.hsd1.tn.comcast.net. [75.66.195.21]) by smtp.gmail.com with ESMTPSA id l126-v6sm11812712ywb.67.2018.05.08.15.38.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 15:38:15 -0700 (PDT) Subject: Re: Error creating plpython3u extension To: pgsql-general@lists.postgresql.org References: From: Jeff Peck Message-ID: Date: Tue, 8 May 2018 17:38:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------E59D41E6655187A857B3A70F" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------E59D41E6655187A857B3A70F Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 05/08/2018 03:28 PM, Bruce Harold wrote: > > Hi > > I have PostgreSQL 10 on Windows 10 and the EDB language pack X64 for > Python 3.4 etc. > > I edited the *system* environment variables: > > PYTHONPATH = C:\edb\languagepack-10\x64\Python-3.4 > > Added C:\edb\LanguagePack-10\x64\Python-3.4\bin to PATH > > Creating the extension plpython3u errors: > > ERROR: could not load library "C:/Program > Files/PostgreSQL/10/lib/plpython3.dll": The specified module could not > be found > > I have conda on the same machine with one Python 3.6 environment, I > tried adding a Python 3.4 environment with conda but no luck there either. > > Anyone have any experience enabling plpython3u in a conda environment? > > Thanks > > Bruce > Hey Bruce, I suggest that you first check to see if the referenced file exists. If yes, the next step is to go download a tool called Dependency Walker. You will open that dll file in Dependency Walker, and it should tell you if anything required is missing from your box. Most likely you just need to install a specific Visual C++ Runtime Environment. If Dependency Walker lists a DLL like MSVCRXXX.dll in the list, you should be able to search for that and find the correct runtime environment pretty easily. Good luck, Jeff Peck --------------E59D41E6655187A857B3A70F Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
On 05/08/2018 03:28 PM, Bruce Harold wrote:

Hi

 

I have PostgreSQL 10 on Windows 10 and the EDB language pack X64 for Python 3.4 etc.

 

I edited the system environment variables:

 

PYTHONPATH = C:\edb\languagepack-10\x64\Python-3.4

Added C:\edb\LanguagePack-10\x64\Python-3.4\bin to PATH

 

Creating the extension plpython3u errors:

 

ERROR: could not load library "C:/Program Files/PostgreSQL/10/lib/plpython3.dll": The specified module could not be found

 

I have conda on the same machine with one Python 3.6 environment, I tried adding a Python 3.4 environment with conda but no luck there either.

 

Anyone have any experience enabling plpython3u in a conda environment?

 

Thanks

 

Bruce

 

 


Hey Bruce,
I suggest that you first check to see if the referenced file exists. If yes, the next step is to go download a tool called Dependency Walker. You will open that dll file in Dependency Walker, and it should tell you if anything required is missing from your box. Most likely you just need to install a specific Visual C++ Runtime Environment. If Dependency Walker lists a DLL like MSVCRXXX.dll in the list, you should be able to search for that and find the correct runtime environment pretty easily.

Good luck,
Jeff Peck
--------------E59D41E6655187A857B3A70F--