Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btn33-0004GV-Kj for pgadmin-hackers@arkaria.postgresql.org; Tue, 11 Oct 2016 02:44:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1btn33-0001P3-5H for pgadmin-hackers@arkaria.postgresql.org; Tue, 11 Oct 2016 02:44:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1btn32-0001Os-HH for pgadmin-hackers@postgresql.org; Tue, 11 Oct 2016 02:44:08 +0000 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1btn2y-0004XM-Nq for pgadmin-hackers@postgresql.org; Tue, 11 Oct 2016 02:44:06 +0000 Received: by mail-it0-x22c.google.com with SMTP id k64so16074538itb.0 for ; Mon, 10 Oct 2016 19:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YtLzRXR4DP0u7gO+jaXLYXrd21p7hSi6J80cS9A7eoc=; b=Q50hjoiHiDQQKkj5bwXl1meapFFzNzUeG4QkZsqjMh0kl7uTL/AMysGDFNYBhZy87N lfTKAmsB0Gx7/DyqK4wGSTas5Z1v5Hq4dYxOsxKEi5aQjxrC21bOwKUehP9tqV9WES8b K7JGoUph4famMtKYbm80XhPH0fnEq4e4yuHJiAWNp9TqqmF/VkXn5RFAeAn1Febq0zDf bu+EqcruC3wlOzuoNuTCY9xle5Fn5vjRhJrVMAU8mVoPrNERmWLSlJKYMk9SdCD+nKIC SW+sXMFs2SV2Z9pWAjteDb8qJ/iI+hDzGoEuk7DD2LRfENo3L7EfoLn4ETMCx7NhCEzc JAbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YtLzRXR4DP0u7gO+jaXLYXrd21p7hSi6J80cS9A7eoc=; b=ZC40BqtrMOADJWGRz6xfnJTu1FXANyt742DhjB5HlsVYbC3dCfkRbpcCNe8Z+hsGsK t6bZrUK+W7TlLfi+1cAFjwLA9OCvm0wN8uCR91ZJ3zIpBPXl5tUQ4gWIwvMfnb1dMA3D xnUvWOV0xl9SGZB3yF0bN/ZZhIIxyDDlBtv9T8PQIeUuwfiq4l5zl6t3OGouX0gl6tm6 n02n4Nm74OGxipH7lpHVbSucEkSgEtRalh8ZUirhvpqu6C1FQVxHjwhaUSvWA97gvegA ISFU+bAWDRPHDhAaOnZ8PuWgO3JmW/iZB9Fp7xsEyqu8Az10PUCpUDNi/WGz37YZGAya V86Q== X-Gm-Message-State: AA6/9RkO9msKP1hnr0Oh7Uy4YQOCrB8aJ2trxRKshVgzoRLDMPaAmEcngFBxxGudV7+L86qb2PH/fFnq4iui2g== X-Received: by 10.36.178.27 with SMTP id u27mr658363ite.113.1476153843465; Mon, 10 Oct 2016 19:44:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.146.135 with HTTP; Mon, 10 Oct 2016 19:44:02 -0700 (PDT) In-Reply-To: <30628d77-bfbb-5bc1-7522-7c3c05730c1a@gmail.com> References: <30628d77-bfbb-5bc1-7522-7c3c05730c1a@gmail.com> From: Dave Page Date: Tue, 11 Oct 2016 03:44:02 +0100 Message-ID: Subject: Re: Running pgadmin4 as desktop application To: Chris Mayo Cc: "pgadmin-hackers@postgresql.org" Content-Type: multipart/alternative; boundary=f403045d9978797a07053e8dd9b5 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --f403045d9978797a07053e8dd9b5 Content-Type: text/plain; charset=UTF-8 On Monday, October 10, 2016, Chris Mayo 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.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --f403045d9978797a07053e8dd9b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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=3D../../../..//usr/lib/python3.5/site-packag= es/pgadmin4-web/
> PythonPath=3D"/usr/lib64/python3.5/site-packages; /usr/lib/p= ython3.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/qsetting= s.html#locations-where-application-settings-are-stored

but that did seem to apply for Qt4.8 too:
http://doc.qt.io/qt-4.8/qset= tings.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 str= ace to see what it is trying to read, e.g:

strace -e open pgadmin4=C2=A0

=
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

En= terpriseDB UK: ht= tp://www.enterprisedb.com
The Enterprise PostgreSQL Company

--f403045d9978797a07053e8dd9b5--