Today morning, I updated my system using sudo pacman -Syu
Then pgAdmin4 and some python modules got updated.
But now I’m unable to run pgAdmin4. When I run below command in terminal: $ pgadmin4
I’ll get below error:
QCoreApplication::applicationFilePath: Please instantiate the QApplication object first
QCoreApplication::applicationFilePath: Please instantiate the QApplication object first
Semaphore name: "pgadmin4-milad-a59283b86ae8ae85d20fdf770d799dd7-sema"
Shared memory segment name: "pgadmin4-milad-a59283b86ae8ae85d20fdf770d799dd7-shmem"
Python path: "/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/lib/python3.9/site-packages"
Python Home: "/usr/lib/python3.9"
Webapp path: "/usr/lib/pgadmin4/web/pgAdmin4.py"
"An error occurred initialising the pgAdmin 4 server:\n\nFailed to launch the application server, server thread exiting."
On other hand, I’m sure postgres service is running correctly because I can execute any query using $ psql command.
I google for the solution but I’m unable to resolve it yet
Here is my system info:
OS: Manjaro 21.0.6`
Kernel: x86_64 Linux 5.4.123-1-MANJARO`
Hi. I have the same problem here.
If I then manually start pgadmin4-server from the command line, I get:
> pgadmin4-server
Traceback (most recent call last):
File "/usr/lib/pgadmin4/web/pgAdmin4.py", line 35, in <module>
import config
File "/usr/lib/pgadmin4/web/config.py", line 25, in <module>
from pgadmin.utils import env, IS_WIN, fs_short_path
File "/usr/lib/pgadmin4/web/pgadmin/__init__.py", line 28, in <module>
from flask_security import Security, SQLAlchemyUserDatastore, current_user
File "/usr/lib/python3.9/site-packages/flask_security/__init__.py", line 15, in <module>
from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user
File "/usr/lib/python3.9/site-packages/flask_security/core.py", line 48, in <module>
from .mail_util import MailUtil
File "/usr/lib/python3.9/site-packages/flask_security/mail_util.py", line 14, in <module>
import email_validator
ModuleNotFoundError: No module named 'email_validator'
I can see that pgAdmin has broke many times before on both arch and manjaro.
It is unfurtunate becuase I use for work to manage multiple databases at a glance.
You would think a tool like this could be easily packaged as a standalone but apparently not.
I really wanted DBeaver to be good, but its very buggy for me for some reason.
pgAdmin4 is in python, pgAdmin3 is in C++.
In my experience, pgAdmin3 is better.
pgAdmin4 is easy to be broken, it implies that it is not high quality, disappointed.
Guys, i also had the same problem, i kept researching until i found out that pgAdmin has an installable pip(python package manager) version, i think it’s exactly the same one that you used to run when downloading via pacman, you can find the instructions here, it took me a minute to install it following the instructions: https://www.pgadmin.org/download/pgadmin-4-python