pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedloading plpython error
7+ messages / 4 participants
[nested] [flat]
* loading plpython error
@ 2019-02-15 00:17 Alan Nilsson <anilsson@apple.com>
2019-02-15 00:27 ` Re: loading plpython error Adrian Klaver <adrian.klaver@aklaver.com>
2019-02-15 00:34 ` Re: loading plpython error Adrian Klaver <adrian.klaver@aklaver.com>
2019-02-15 00:42 ` Re: loading plpython error Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 3 replies; 7+ messages in thread
From: Alan Nilsson @ 2019-02-15 00:17 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Platform: Linux x86-64, CentOS 6, Postgres 11.1.
We have installed from the YUM repo. The server runs fine but we are trying to add python support.
yum install postrgesql11-contrib postgresql11-plpython
I can see the installed files in the correct locations but when we invoke create extension, we are greeted with the following error:
ERROR: could not load library "/usr/pgsql-11/lib/plpython2.so": /usr/pgsql-11/lib/plpython2.so: undefined symbol: getmissingattr
Is there something yet to be installed? Is this a package error? Any hints to fixing?
thanks
alan
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: loading plpython error
2019-02-15 00:17 loading plpython error Alan Nilsson <anilsson@apple.com>
@ 2019-02-15 00:27 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-02-15 00:46 ` Re: loading plpython error Alan Hodgson <ahodgson@lists.simkin.ca>
2 siblings, 1 reply; 7+ messages in thread
From: Adrian Klaver @ 2019-02-15 00:27 UTC (permalink / raw)
To: Alan Nilsson <anilsson@apple.com>; pgsql-general@lists.postgresql.org
On 2/14/19 4:17 PM, Alan Nilsson wrote:
> Platform: Linux x86-64, CentOS 6, Postgres 11.1.
>
> We have installed from the YUM repo. The server runs fine but we are
> trying to add python support.
>
> yum install postrgesql11-contrib postgresql11-plpython
>
> I can see the installed files in the correct locations but when we
> invoke create extension, we are greeted with the following error:
>
> ERROR: could not load library "/usr/pgsql-11/lib/plpython2.so":
> /usr/pgsql-11/lib/plpython2.so: undefined symbol: getmissingattr
>
> Is there something yet to be installed? Is this a package error? Any
> hints to fixing?
Is there Python 2.x on this machine?
As I understand it by default plpython is for Python 2.x
>
> thanks
> alan
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: loading plpython error
2019-02-15 00:17 loading plpython error Alan Nilsson <anilsson@apple.com>
2019-02-15 00:27 ` Re: loading plpython error Adrian Klaver <adrian.klaver@aklaver.com>
@ 2019-02-15 00:46 ` Alan Hodgson <ahodgson@lists.simkin.ca>
0 siblings, 0 replies; 7+ messages in thread
From: Alan Hodgson @ 2019-02-15 00:46 UTC (permalink / raw)
To: pgsql-general <pgsql-general@lists.postgresql.org>
> On 2/14/19 4:17 PM, Alan Nilsson wrote:
> > Platform: Linux x86-64, CentOS 6, Postgres 11.1.
> >
> > We have installed from the YUM repo. The server runs fine but we
> > are
> > trying to add python support.
> >
> > yum install postrgesql11-contrib postgresql11-plpython
> >
> > I can see the installed files in the correct locations but when we
> > invoke create extension, we are greeted with the following error:
> >
> > ERROR: could not load library "/usr/pgsql-11/lib/plpython2.so":
> > /usr/pgsql-11/lib/plpython2.so: undefined symbol: getmissingattr
> >
> > Is there something yet to be installed? Is this a package error?
> > Any
> > hints to fixing?
I see one possibly related issue talked about on a Debian list that
extensions compiled against PostgreSQL 11.2 would likely not load into
previous releases due to this missing symbol.
https://bugs.launchpad.net/ubuntu/+source/skytools3/+bug/1815665
I would guess this is a related version mismatch; likely in the
build/release process.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: loading plpython error
2019-02-15 00:17 loading plpython error Alan Nilsson <anilsson@apple.com>
@ 2019-02-15 00:34 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-02-15 00:39 ` Re: loading plpython error Adrian Klaver <adrian.klaver@aklaver.com>
2 siblings, 1 reply; 7+ messages in thread
From: Adrian Klaver @ 2019-02-15 00:34 UTC (permalink / raw)
To: Alan Nilsson <anilsson@apple.com>; pgsql-general@lists.postgresql.org
On 2/14/19 4:17 PM, Alan Nilsson wrote:
> Platform: Linux x86-64, CentOS 6, Postgres 11.1.
>
> We have installed from the YUM repo. The server runs fine but we are
> trying to add python support.
>
> yum install postrgesql11-contrib postgresql11-plpython
>
> I can see the installed files in the correct locations but when we
> invoke create extension, we are greeted with the following error:
>
> ERROR: could not load library "/usr/pgsql-11/lib/plpython2.so":
> /usr/pgsql-11/lib/plpython2.so: undefined symbol: getmissingattr
>
> Is there something yet to be installed? Is this a package error? Any
> hints to fixing?
What happens if you try?:
CREATE EXTENSION plpython3u;
>
> thanks
> alan
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: loading plpython error
2019-02-15 00:17 loading plpython error Alan Nilsson <anilsson@apple.com>
2019-02-15 00:34 ` Re: loading plpython error Adrian Klaver <adrian.klaver@aklaver.com>
@ 2019-02-15 00:39 ` Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 0 replies; 7+ messages in thread
From: Adrian Klaver @ 2019-02-15 00:39 UTC (permalink / raw)
To: Alan Nilsson <anilsson@apple.com>; pgsql-general@lists.postgresql.org
On 2/14/19 4:34 PM, Adrian Klaver wrote:
> On 2/14/19 4:17 PM, Alan Nilsson wrote:
>> Platform: Linux x86-64, CentOS 6, Postgres 11.1.
>>
>> We have installed from the YUM repo. The server runs fine but we are
>> trying to add python support.
>>
>> yum install postrgesql11-contrib postgresql11-plpython
>>
>> I can see the installed files in the correct locations but when we
>> invoke create extension, we are greeted with the following error:
>>
>> ERROR: could not load library "/usr/pgsql-11/lib/plpython2.so":
>> /usr/pgsql-11/lib/plpython2.so: undefined symbol: getmissingattr
>>
>> Is there something yet to be installed? Is this a package error? Any
>> hints to fixing?
>
> What happens if you try?:
>
> CREATE EXTENSION plpython3u;
Forget the above, I looked at:
https://yum.postgresql.org/testing/11/redhat/rhel-6-x86_64/repoview/postgresql11-plpython.html
and it only includes plpython2u.
>
>>
>> thanks
>> alan
>>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: loading plpython error
2019-02-15 00:17 loading plpython error Alan Nilsson <anilsson@apple.com>
@ 2019-02-15 00:42 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-02-15 17:17 ` Re: loading plpython error Alan Nilsson <anilsson@apple.com>
2 siblings, 1 reply; 7+ messages in thread
From: Tom Lane @ 2019-02-15 00:42 UTC (permalink / raw)
To: Alan Nilsson <anilsson@apple.com>; +Cc: pgsql-general@lists.postgresql.org
Alan Nilsson <anilsson@apple.com> writes:
> Platform: Linux x86-64, CentOS 6, Postgres 11.1.
> We have installed from the YUM repo. The server runs fine but we are trying to add python support.
> yum install postrgesql11-contrib postgresql11-plpython
> I can see the installed files in the correct locations but when we invoke create extension, we are greeted with the following error:
> ERROR: could not load library "/usr/pgsql-11/lib/plpython2.so": /usr/pgsql-11/lib/plpython2.so: undefined symbol: getmissingattr
getmissingattr is a new core-PG function in 11.2. I believe this means
you're trying to load an 11.2 build of plpython2.so into an 11.1 server.
You need to either update the server, or find an 11.1 build of plpython.
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: loading plpython error
2019-02-15 00:17 loading plpython error Alan Nilsson <anilsson@apple.com>
2019-02-15 00:42 ` Re: loading plpython error Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-02-15 17:17 ` Alan Nilsson <anilsson@apple.com>
0 siblings, 0 replies; 7+ messages in thread
From: Alan Nilsson @ 2019-02-15 17:17 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general@lists.postgresql.org
Indeed, that was it. Thank you Tom!
alan
> On Feb 14, 2019, at 4:42 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Alan Nilsson <anilsson@apple.com> writes:
>> Platform: Linux x86-64, CentOS 6, Postgres 11.1.
>> We have installed from the YUM repo. The server runs fine but we are trying to add python support.
>
>> yum install postrgesql11-contrib postgresql11-plpython
>
>> I can see the installed files in the correct locations but when we invoke create extension, we are greeted with the following error:
>
>> ERROR: could not load library "/usr/pgsql-11/lib/plpython2.so": /usr/pgsql-11/lib/plpython2.so: undefined symbol: getmissingattr
>
> getmissingattr is a new core-PG function in 11.2. I believe this means
> you're trying to load an 11.2 build of plpython2.so into an 11.1 server.
> You need to either update the server, or find an 11.1 build of plpython.
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-02-15 17:17 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-02-15 00:17 loading plpython error Alan Nilsson <anilsson@apple.com>
2019-02-15 00:27 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-02-15 00:46 ` Alan Hodgson <ahodgson@lists.simkin.ca>
2019-02-15 00:34 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-02-15 00:39 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-02-15 00:42 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-02-15 17:17 ` Alan Nilsson <anilsson@apple.com>
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