Pgadmin4 on Fedora 35

Hi,

I was trying to install pgadmin4 (without the postgresql server) for admining a postgresql instance on another machine. Following Download didn’t work so well at the sudo yum install pgadmin4-desktop step - an ‘f35’ resource file is looked for an not found (only an f34 one exists). This rhymes with the description on that page under ‘supported platforms’.

I found an older post that adviced to use the repos here PostgreSQL: Linux downloads (Red Hat family) and then sudo dnf install pgadmin4:

sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/F-35-x86_64/pgdg-fedora-repo-latest.noarch.rpm
sudo dnf install pgadmin4 > “No match: pgadmin4”

I tried itamarjp/pgadmin4 Copr and after copr enabling user/repo and then doing sudo dnf install pgadmin4 (after doing sudo rpm -e pgadmin4-fedora-repo ) there’s a dependancy mismatch with nothing providing python3-flask-babelex.

I don’t strictly require pgadmin4, any client software graphical or not would be great, without installing a database engine too. Any hints would be welcome : )

2 Likes

Did you get a try on that:

1 Like

Thanks for the suggestion!

Tried “pip install pgadmin4” and the script seems to complete bar psycopg2-from-source things I think (psycopg2-binary is installed).

Upon launching like so (a guess, I haven’t seen any other means)

[to@feds ~]$ pgadmin4
Traceback (most recent call last):
  File "/home/to/.local/bin/pgadmin4", line 5, in <module>
    from pgadmin4.pgAdmin4 import main
  File "/home/to/.local/lib/python3.10/site-packages/pgadmin4/pgAdmin4.py", line 35, in <module>
    import config
  File "/home/to/.local/lib/python3.10/site-packages/pgadmin4/config.py", line 25, in <module>
    from pgadmin.utils import env, IS_WIN, fs_short_path
  File "/home/to/.local/lib/python3.10/site-packages/pgadmin4/pgadmin/__init__.py", line 21, in <module>
    from flask import Flask, abort, request, current_app, session, url_for
  File "/home/to/.local/lib/python3.10/site-packages/flask/__init__.py", line 21, in <module>
    from .app import Flask, Request, Response
  File "/home/to/.local/lib/python3.10/site-packages/flask/app.py", line 36, in <module>
    from .sessions import SecureCookieSessionInterface
  File "/home/to/.local/lib/python3.10/site-packages/flask/sessions.py", line 14, in <module>
    from collections import MutableMapping
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib64/python3.10/collections/__init__.py)

Does it work for anyone else?

1 Like

you can use, DBeaver over flatpak, see above description how to install:

https://flathub.org/apps/details/io.dbeaver.DBeaverCommunity

or You can use a container, and open your browser in http:\\localhost:80, all you need is install podman and replace dockerfor podman thats all.

https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html#examples

Regards.,

1 Like

Many thanks! The podman variant seems to work. Got rootlessport cannot expose privileged port 80 for 80:80 though 8080:80 works.

1 Like

Hovewer there is a compatibility problem with python 3.10 and was reported to upstream:

you need to be a member to see it but just in case.

https://redmine.postgresql.org/issues/7014

Regards

2 Likes

Looks like pgadmin4 for fedora 35 is cooming soon Re: pgadmin4 for fedora 35

1 Like

noted there:

https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2021-11-26/yum/

NOTE

pgadmin4 6.3 (16-Dec-2021) on pgAdmin website.

Regards.,

1 Like

is available now, Release date: 2021-12-16:

https://www.pgadmin.org/docs/pgadmin4/6.3/release_notes_6_3.html

Instalation

https://www.pgadmin.org/download/pgadmin-4-rpm/

References

https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/
https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/fedora/

Regards.,

1 Like