On Monday, October 10, 2016, Chris Mayo <
aklhfex@gmail.com> wrote:
> Ok, this worked on CentOS 7 box, but not on Fedora 24, which has QT5 and Python
> 3. Can you help me to debug this? The content of the file in Fedora 24 is:
>
> $ cat /etc/pgAdmin\ Development\ Team/pgAdmin\ 4.conf
> [General]
> ApplicationPath=../../../..//usr/lib/python3.5/site-packages/pgadmin4-web/
> PythonPath="/usr/lib64/python3.5/site-packages; /usr/lib/python3.5/site-packages"
>
>
> I'm still getting segfault, and:
>
> An error occurred initialising the application server:
>
> Failed to locate pgAdmin4.py, terminating server thread.
I suspect it is because the path is missing the xdg directory:
/etc/xdg/pgAdmin\ Development\ Team/pgAdmin\ 4.conf
http://doc.qt.io/qt-5/qsettings.html#locations-where-application-settings-are-stored
but that did seem to apply for Qt4.8 too:
http://doc.qt.io/qt-4.8/qsettings.html#locations-where-application-settings-are-stored
In my tests on CentOS 7, I found it wasn't even trying to open the /etc/xdg/... dir. You might try running under strace to see what it is trying to read, e.g:
strace -e open pgadmin4
--
Dave Page
Blog:
http://pgsnake.blogspot.comTwitter: @pgsnake
EnterpriseDB UK:
http://www.enterprisedb.comThe Enterprise PostgreSQL Company