pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: could not load library "$libdir/plpython2" while upgrading from postgresql-10 to 12
Date: Fri, 5 Mar 2021 09:59:34 +0100
Message-ID: <3641e106-1db2-270a-691d-521ffacf03c7@jakobs.com> (raw)
In-Reply-To: <CAFzdntsTDKkCv8hBaqdoGWM+MZk0oq49L5AmRaohe-yCyciuyw@mail.gmail.com>
References: <CAFzdntsTDKkCv8hBaqdoGWM+MZk0oq49L5AmRaohe-yCyciuyw@mail.gmail.com>

Hi,

Since Python2 is totally deprecated, you'll have to use Python3.

postgresql-plpython3-12 - PL/Python 3 procedural language for PostgreSQL 12

Regards,

Holger

Am 05.03.21 um 08:03 schrieb RAJAMOHAN:
> Hello all,
>
> I am getting the below error while trying to upgrade from postgres 10 
> to 12 version on ubuntu machine.  It seems plpython2 is not installed 
> for the postgresql-12 version.
>
> *could not load library "$libdir/plpython2": ERROR:  could not access 
> file "$libdir/plpython2": No such file or directory
> *
>
>
> I tried to install it using the below command, but it was not 
> successful. Whether I need to migrate the functions in postgres-10 
> instance to plpython3 and try upgrading OR Is there any other way to 
> install the package for postgresql-12 version?
>
> apt install postgresql-plpython-12
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package postgresql-plpython-12
>
>
> OS details:
>   Operating System: Ubuntu 18.04.1 LTS
>             Kernel: Linux 5.4.0-1035-aws
>       Architecture: x86-64
>
>
> Thanks & Regards,
> Raj
>
-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

Attachments:

  OpenPGP_signature (application/pgp-signature, 202B) download

view thread (5+ messages)  latest in thread

Message-ID: <3641e106-1db2-270a-691d-521ffacf03c7@jakobs.com>
Permalink:  ../3641e106-1db2-270a-691d-521ffacf03c7@jakobs.com/
Also on:    postgresql.org/message-id/3641e106-1db2-270a-691d-521ffacf03c7@jakobs.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org
  Subject: Re: could not load library "$libdir/plpython2" while upgrading from postgresql-10 to 12
  In-Reply-To: <3641e106-1db2-270a-691d-521ffacf03c7@jakobs.com>

* 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