Re: pgAdmin4 on Kubuntu Hirsute

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: "Ray O'Donnell" <ray(at)rodonnell(dot)ie>
Cc: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>, Pgadmin-Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: pgAdmin4 on Kubuntu Hirsute
Date: 2021-05-04 05:34:14
Message-ID: CAM9w-_=mzjGrm_WML0XoxB4Y9BcBQv9S7=cc9p83V9YUY_OHzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi Ray,

A working solution would be to recreate the symlink to match your python.
Use the below command -

*sudo rm /usr/pgadmin4/venv/bin/python3 && sudo ln -s /usr/bin/python3.9
/usr/pgadmin4/venv/bin/python3*

On Tue, May 4, 2021 at 2:12 AM Ray O'Donnell <ray(at)rodonnell(dot)ie> wrote:

> On 03/05/2021 07:17, Akshay Joshi wrote:
> > I would suggest activating the virtual environment "source
> > /usr/pgadmin4/venv/bin/activate" and then try to run
> > "/usr/pgadmin4/venv/bin/python3 -s /usr/pgadmin4/web/pgAdmin4.py" and
> > check whether it works or the same error.
>
> Hello Akshay,
>
> Thanks for responding. I tried that.... the "activate" command worked,
> and the command prompt now had "(venv)" in front of it. However, the
> second command failed with:
>
> /usr/pgadmin4/venv/bin/python3: No such file or directory
>
> When I look into that directory, /usr/pgadmin4/venv/bin/python3 is
> symlinked to /usr/bin/python3.8. However, on my system I see instead
> /usr/bin/python3.9. Just for fun, I tried running:
>
> /usr/bin/python3.9 -s /usr/pgadmin4/web/pgAdmin4.py
>
> However, it failed with:
>
> Traceback (most recent call last):
> File "/usr/pgadmin4/web/pgAdmin4.py", line 16, in <module>
> from cheroot.wsgi import Server as CherootServer
> ModuleNotFoundError: No module named 'cheroot'
>
> As I said in my first email, I appreciate that my Kubuntu version is
> ahead of the supported ones; so I'm happy enough to wait until a pgAdmin
> version which works on my computer is released - at the rate at which
> you guys work, I'm sure that won't be long! In the meantime, I still
> have psql. :-)
>
> Thanks,
>
> Ray.
>
> --
> Raymond O'Donnell // Galway // Ireland
> ray(at)rodonnell(dot)ie
>
>
>

--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | *edbpostgres.com*
<http://edbpostgres.com>
"Don't Complain about Heat, Plant a TREE"

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2021-05-04 07:39:04 Re: pgAdmin4 on Kubuntu Hirsute
Previous Message Aditya Toshniwal 2021-05-04 05:26:36 Re: pgAdmin4 fatal error