Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1htD6c-0006aF-MF for pgsql-general@arkaria.postgresql.org; Thu, 01 Aug 2019 15:35:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1htD6b-0005HP-J2 for pgsql-general@arkaria.postgresql.org; Thu, 01 Aug 2019 15:35:01 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1htD6b-0005H0-73 for pgsql-general@lists.postgresql.org; Thu, 01 Aug 2019 15:35:01 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1htD6U-0002ZB-BG for pgsql-general@lists.postgresql.org; Thu, 01 Aug 2019 15:35:00 +0000 Received: by mail-ot1-x344.google.com with SMTP id x21so9215184otq.12 for ; Thu, 01 Aug 2019 08:34:53 -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=XRFgANzDnT1gzjmxzTO1G/+BG3jILl4S3O6Pg4hc3vY=; b=cpBL9Vi0ig1SEli+pZ+e3a8dZTsQMGeB6x+66wvQDi07ZmpKG+uQn6Q+fxpGzhbAlY UkWuYqsR3c2VwrWOxQtu/1c184mF2XZJFF5446IXGAizT/PbsTvT+IF2ihBOEaGpbhNS YSOTRvejGsI+LCCKXh35H+Tzc/4ksln9DCGCBA4EmEz5rcJZwrun4blgrvETfhg7giXB go4cpMcBzzJwJIGMECcQUT8UpRIrQ0grij9tT6M+h7AprVZ8MC1KB7DavN3avEiUk4NC w6yLsS0xPzxX5XnI1grXAqNWHiVFWubZfdd7qHLmMjHNqsxFxA+Ll8LyBlvs8fVNSdaL KDWQ== 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=XRFgANzDnT1gzjmxzTO1G/+BG3jILl4S3O6Pg4hc3vY=; b=Zs/Jmt1iUo+kZfDBaCl6a/BrvFQWoeRRHNlhNm1FYgJQY4eZWInzc6Ml3SHhT4aN8L Zlz1JPrk4FvaBPtqrKgpSLLsIVBVPtK3AR9y51o3xBsL2+51D+xoluCqDa1lg5b+Yuw3 JQXjXJVoIFsLrt1Hcfnk7/w1HGjWBWCc7g0js1gVvh/GhrLZGiYrx8HfsKiMZUBJmQad cXK+zfeKPEWjZcIdndCg82p+v7XX+S7isLwAIN/LFvmI4Kw5Kq7YSg/3ROKWTUC12BX3 J18mXM4CaUHGo+qQbtFTNEgHamFsAXK8iii0J01yvrmU5qvt9UM++Z1DZ5ARUfCa7Ktc aGxw== X-Gm-Message-State: APjAAAUuql7slS9WX/c4xA7lE6Va7zcIzE+Yw8O3PLdMEH0076eEBqL8 XVQaketQ7l3dJj/cVUft3uUiCxv0TS0= X-Google-Smtp-Source: APXvYqxDO+FGghsYwIekUtv0bTH4YnJzDiVIbY4sQsEawAVMkI3g93Bo8kFH+R4+I7lYUAeBhURLsg== X-Received: by 2002:a9d:6b96:: with SMTP id b22mr27949700otq.262.1564673689613; Thu, 01 Aug 2019 08:34:49 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id x5sm24787175otb.6.2019.08.01.08.34.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2019 08:34:46 -0700 (PDT) Subject: Re: PGAdmin4.11.1 on Ubuntu 18.04 To: pgsql-general@lists.postgresql.org References: <60b0d698-1157-5212-2fa6-da69dd1354b6@aklaver.com> From: Ron Message-ID: <4017c72d-06d2-932e-138d-94088c58688f@gmail.com> Date: Thu, 1 Aug 2019 10:34:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------43FBBFB827FBB5B9C9347F9F" 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. --------------43FBBFB827FBB5B9C9347F9F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I think the real question is "how do I make pgadmin4 use the locally installed psycopg instead of the system version?" On 8/1/19 10:32 AM, Tony Shelver wrote: > The article at stackoverflow is here > > > On Thu, 1 Aug 2019 at 17:28, Tony Shelver > wrote: > > Thanks for the replies: the version is PG11.4. > > As for needing to upgrade:  I just want to fix the problem.  This was > a working environment until I updated pgAdmin4. > > The fix suggested on Stackoverflow was to move to psycopg2 2.8, but it > doesn't seem to be possible. > > If there is another fix that anyone is aware of, I would love to know. > > I tried to uninstall pgAdmin4, then install psycopg 2.8 via pip, then > reinstall pgadmoin4 again using the Synatpic / Ubunto package manager, > but it just installs pscopg2.7 over the top. > > On Thu, 1 Aug 2019 at 16:50, Adrian Klaver > wrote: > > On 8/1/19 7:39 AM, Tony Shelver wrote: > > I am getting an 'able oid' when querying any tables using the > Query tool. > > When using the view / edit data option, everything works fine. > > Should have asked in previous post: > > What Postgres version(s)? > > > > > I came across this > > <<< > > > > The problem is due to python3-psycopg2. The latest pgadmin4 version > > requires psycopg2-2.8. But if you're on Debian/Ubuntu stable, apt > > installed v2.7. So you need to update it with pip : > > > > |sudo pip3 install -U psycopg2 > >>>> > > | > > > > |The problem is that the upgrade to psycopg 2.8 doesn't work, as > it's > > installed as part of the dtsutils package along with pgadmin4. > > > > | > > > > |Any ideas? > > | > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Angular momentum makes the world go 'round. --------------43FBBFB827FBB5B9C9347F9F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit I think the real question is "how do I make pgadmin4 use the locally installed psycopg instead of the system version?"

On 8/1/19 10:32 AM, Tony Shelver wrote:
The article at stackoverflow is here

On Thu, 1 Aug 2019 at 17:28, Tony Shelver <tshelver@gmail.com> wrote:
Thanks for the replies: the version is PG11.4. 

As for needing to upgrade:  I just want to fix the problem.  This was a working environment until I updated pgAdmin4.

The fix suggested on Stackoverflow was to move to psycopg2 2.8, but it doesn't seem to be possible.

If there is another fix that anyone is aware of, I would love to know.

I tried to uninstall pgAdmin4, then install psycopg 2.8 via pip, then reinstall pgadmoin4 again using the Synatpic / Ubunto package manager, but it just installs pscopg2.7 over the top.

On Thu, 1 Aug 2019 at 16:50, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 8/1/19 7:39 AM, Tony Shelver wrote:
> I am getting an 'able oid' when querying any tables using the Query tool.
> When using the view / edit data option, everything works fine.

Should have asked in previous post:

What Postgres version(s)?

>
> I came across this
> <<<
>
> The problem is due to python3-psycopg2. The latest pgadmin4 version
> requires psycopg2-2.8. But if you're on Debian/Ubuntu stable, apt
> installed v2.7. So you need to update it with pip :
>
> |sudo pip3 install -U psycopg2
>>>>
> |
>
> |The problem is that the upgrade to psycopg 2.8 doesn't work, as it's
> installed as part of the dtsutils package along with pgadmin4.
>
> |
>
> |Any ideas?
> |
>


--
Adrian Klaver
adrian.klaver@aklaver.com

--
Angular momentum makes the world go 'round.
--------------43FBBFB827FBB5B9C9347F9F--