Aldo Ridhoni's Weblog Belajar Menulis

Failed to locate pgAdmin4.py


After a install a rpm for the postgres repository, then install pgAdmin4 using dnf.

$ sudo dnf install pgAdmin4-v1

But when opening the application, there was an error:

pgAdmin4 Error

A simple workaround is:

  • Create folder:

    $ mkdir ~/.config/pgAdmin\ Development\ Team
    
  • Create a config file:

    (change vim with your editor)

    $ vim ~/.config/pgAdmin\ Development\ Team/pgAdmin\ 4.conf
    
  • Insert into the file :

    [General]
    ApplicationPath=../../../usr/lib/python3.5/site-packages/pgadmin4-web
    PythonPath="/usr/lib/python3.5/site-packages;/usr/lib64/python3.5/site-packages;"
    

pgAdmin4

A single pixel