Het probleem is te wijten aan python3-psycopg2. De nieuwste pgadmin4-versie vereist psycopg2-2.8. Maar als je Debian/Ubuntu stable gebruikt, installeerde apt v2.7. Dus je moet het updaten met pip :
sudo pip3 install -U psycopg2
Werk vervolgens de pgadmin4-configuratie bij om het lokale python-pad toe te voegen:
nano ~/.config/pgadmin/pgadmin4.conf
# or with a right click on the system tray icon
# add /usr/local/lib/python3.6/dist-packages to the PythonPath.
Hetzelfde met python3.7 (verander gewoon het lib-pad)
Ik hoop dat dit helpt.