pgadmin4 failed after upgrade ubuntu 20.04

Поиск
Список
Период
Сортировка
От bw
Тема pgadmin4 failed after upgrade ubuntu 20.04
Дата
Msg-id CAKqYf_JuUvJT0gU3NuOhRmR8n1Dg2B+h5ozSFDMNSTP7BweKPQ@mail.gmail.com
обсуждение исходный текст
Список pgadmin-support
Hi,

I upgraded ubuntu from 19.10 to 20.04 and pgAdmin4 wasn' t working anymore. I got an 500 error. I wanted to upgrade pgadmin4 too via pip but inside the virtualenv even pip wasn't working anymore.
I guessed it was to do with the python version now being 3.8 but still having 2.7 as default. So I installed python-is-python3 and was able to create a new venv and was able to install pgadmin4 via pip.

But still I do got an 500 error that the python version is not correct, which is checked in pgAdmin4.wsgi

Within the virtualenv I see that the version is correct (or is it?)
(pgadmin) root@server:/data/.envs/pgadmin# python --version
Python 3.8.2
pgAdmin4.wsgi tests this in the following way:
if sys.version_info < (3, 4):
    raise Exception('This application must be run under Python 3.4 or later ')
Which is in my findings correct. Why do I get this error?

I finally found out that the standard mod_wsgi is compiled against python 2.7
So after installing libapache2-mod-wsgi-py3 all was fine :)

In all this search I changed a lot of config settings as the apache config was still pointing to ../lib/python3.7/.. and I changed the virtualenv name from pgadmin4 to pgadmin. So I am sure there were errors there too along the way.

I am just sending this in case someone else like me got into trouble, as in total my pgAdmin was down a couple of days.

Cheers,
Bastiaan


В списке pgadmin-support по дате отправления:

Предыдущее
От: John Zhang
Дата:
Сообщение: Fwd: 'Data Output' tab has No Horizontal Scrolling
Следующее
От: Cormac Martinez del Rio
Дата:
Сообщение: application not opening