The pgAdmin 4 server could not be contacted after update ubuntu to 22.04.1LTS

Viewed 246

After upgrading Ubuntu 20.04.4LTS to 22.04.1LTS, pgAdmin4 doesn't work. Please help me to solve this problem, there are several similar topics, none helped. I'm a beginner in using Ubuntu, maybe I did something wrong.

The pgAdmin 4 server could not be contacted:

Total spawn time to start the pgAdmin4 server: 0.004 Sec
Traceback (most recent call last):
  File "/usr/pgadmin4/web/pgAdmin4.py", line 38, in <module>
    import config
  File "/usr/pgadmin4/web/config.py", line 25, in <module>
    from pgadmin.utils import env, IS_WIN, fs_short_path
  File "/usr/pgadmin4/web/pgadmin/__init__.py", line 23, in <module>
    from flask import Flask, abort, request, current_app, session, url_for
  File "/usr/pgadmin4/venv/lib/python3.8/site-packages/flask/__init__.py", line 1, in <module>
    from markupsafe import escape
  File "/usr/pgadmin4/venv/lib/python3.8/site-packages/markupsafe/__init__.py", line 4, in <module>
    import typing as t
ModuleNotFoundError: No module named 'typing'
0 Answers
Related