pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: kalyan.singh@capgemini.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16221: ERROR while importing Plpython , pltcl
Date: Tue, 21 Jan 2020 10:16:13 -0500
Message-ID: <11276.1579619773@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOBaU_ZTzoJ=e_MTRTLvnP3vqx4aocnSZAq2pMcFDrHh8vz9+A@mail.gmail.com>
References: <16221-eee1afe4563008e3@postgresql.org>
	<CAOBaU_ZTzoJ=e_MTRTLvnP3vqx4aocnSZAq2pMcFDrHh8vz9+A@mail.gmail.com>

Julien Rouhaud <rjuju123@gmail.com> writes:
> On Tue, Jan 21, 2020 at 8:35 AM PG Bug reporting form
> <noreply@postgresql.org> wrote:
>> We are trying to import  “plpythonu” in postgresql  but when running the
>> below query we are getting an error:-
>> CREATE EXTENSION plpythonu
>> ERROR:  could not load library "C:/Program
>> Files/PostgreSQL/11/lib/plpython2.dll": The specified module could not be
>> found.
>> Although I have “plpython2.dll” is there in the same location.

> If all the files are present in the expected location, this is
> probably due to wrong privilege access on the files, or some antivirus
> preventing postgres from loading the libs.  Have you tried after
> disabling the antivirus or configuring an exception for the postgres'
> directories?

Another likely theory is that the message is not trying to complain
about plpython2.dll, but about some library that that depends on,
probably libpython itself.  If you look into the postmaster log file,
rather than just at what's reported to the client, you might find
some additional low-level messages clarifying this.

If this were a Linux machine I'd recommend using "ldd" to investigate
the dependencies of plpython2.dll.  But I don't know what the equivalent
tool for Windows is.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <11276.1579619773@sss.pgh.pa.us>
Permalink:  ../11276.1579619773@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11276.1579619773@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rjuju123@gmail.com
  Subject: Re: BUG #16221: ERROR while importing Plpython , pltcl
  In-Reply-To: <11276.1579619773@sss.pgh.pa.us>
  References: <16221-eee1afe4563008e3@postgresql.org> <CAOBaU_ZTzoJ=e_MTRTLvnP3vqx4aocnSZAq2pMcFDrHh8vz9+A@mail.gmail.com> <11276.1579619773@sss.pgh.pa.us>

* 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