Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btZZm-0004Wd-7g for pgadmin-hackers@arkaria.postgresql.org; Mon, 10 Oct 2016 12:21:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1btZZl-0004J9-Qk for pgadmin-hackers@arkaria.postgresql.org; Mon, 10 Oct 2016 12:21:01 +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 1btZZl-0004J3-Ao for pgadmin-hackers@postgresql.org; Mon, 10 Oct 2016 12:21:01 +0000 Received: from ns5.gunduz.org ([107.170.136.15] helo=ns1.gunduz.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1btZZh-0005hv-IX for pgadmin-hackers@postgresql.org; Mon, 10 Oct 2016 12:21:00 +0000 Received: from asus-laptop-03-gunduz-org (unknown [88.248.122.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ns1.gunduz.org (Postfix) with ESMTPSA id C88743FCF5; Mon, 10 Oct 2016 12:20:55 +0000 (UTC) Message-ID: <1476102053.2867.39.camel@gunduz.org> Subject: Re: Running pgadmin4 as desktop application From: Devrim =?ISO-8859-1?Q?G=FCnd=FCz?= To: Dave Page Cc: pgadmin-hackers Date: Mon, 10 Oct 2016 15:20:53 +0300 In-Reply-To: References: <1475749506.3515.12.camel@gunduz.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-Z1ncw4JtbJggG0zE9n44" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 X-Pg-Spam-Score: -2.2 (--) 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 --=-Z1ncw4JtbJggG0zE9n44 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Dave, On Thu, 2016-10-06 at 13:42 +0100, Dave Page wrote: >=20 > The global config file that Qt will read by default seems to be > "/etc/pgAdmin Development Team/pgAdmin 4.conf". >=20 > I may change that for 1.1 to use a less obnoxious path. The contents > of it seem to need to be: >=20 > [General] > ApplicationPath=3D../../../../usr/lib/python2.7/site-packages/pgadmin4-we= b/ > PythonPath=3D"/usr/lib64/python2.7/site-packages/;/usr/lib/python2.7/site= - > packages/" >=20 > The ApplicationPath is the directory containing pgAdmin4.py. Due to a > bugette in the way the runtime works, it needs to be relative to the > location of the runtime, hence all the back-tracking. The PythonPath > needs to include both the 32 and 64 bit directories, as it seems that > some of the Python modules end up in each. >=20 > That was enough to get it to start for me. Ok, this worked on CentOS 7 box, but not on Fedora 24, which has QT5 and Py= thon 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=C2=A0 [General] ApplicationPath=3D../../../..//usr/lib/python3.5/site-packages/pgadmin4-web= / PythonPath=3D"/usr/lib64/python3.5/site-packages; /usr/lib/python3.5/site-p= ackages" I'm still getting segfault, and: An error occurred initialising the application server: Failed to locate pgAdmin4.py, terminating server thread. > Then, we run into the tricky issues, where you may have to deal with > conflicts between web and desktop mode. In our other installers, we > ship a blank config_local.py file, with a simple comment at the top > telling the user they can customise any settings in that file. For web > users, we don't want that, as it's used as a security mechanism > (startup will fail if it's not present, and tell the user they must > set some security-critical options). Those options don't matter in > desktop mode, hence why we pre-write the file. >=20 > Perhaps the way around that is to have the shortcut on the menu call a > script that can create config_local.py if needed? Though, I see you > already have config_distro.py forcing the user into desktop mode, > which is a potential conflict. AFAICS, creating the file above helped to solve this issue, at least I can = say that both modes work on CentOS 7. > The other issue I see is with the docs: >=20 > 1) The path in config_distro.py is > /usr/share/doc/pgadmin4-docs/en_US/html/. That directory doesn't exist > - if the docs are compiled in-situ, they'll end up in > /usr/share/doc/pgadmin4-docs/en_US/html/_build/html >=20 > 2) The docs aren't built, so there is no _build/html directory. Actuallly they are installed via -docs subpackage, but I forgot to add this= as a dependency. > 3) The docs are integrated into the application so really should be a > dependency of the pgadmin4 RPM. Ok, fixed. Pushed to 9.6 testing repo: yum =C2=A0--enablerepo pgdg96-updates-testing install pgadmin4 pgadmin4-web (Packages will appear in next sync ;) ) Can you please test again? Cheers, --=20 Devrim G=C3=9CND=C3=9CZ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR --=-Z1ncw4JtbJggG0zE9n44 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJX+4elAAoJENjDPf6Sz261NicQAKk7SW+x0CbQ6PD9npen9iA2 JPJ48Q+PMv3S8/806eAtv0MMKmj5JSiC/70058+GC08mU0YwJFB/qe11D3gU6XoO nu8ZcpT2bovLYM9282vZsPw12h1ALp8SSMTeXxgC1S4aJvKH5pVzLSm+GF05KWeY CKnXLAhvGYh1pQVNCKNYNdsp6p+PYMZn7It69BtsX8dEe2BWSCte3RbDmFQPYg2o Ld5qo+lokxtJpRasnLocHgeknYY1BsEXCRt+qOLoue0GM4MgYVXxL/paOMSyFU68 fVYbLycirroFgx0jmrDwqFKr0Pj0qr8fnx5uFj1GLOKLwVqRm6ujxZgp+Ttvp4jn sJR9Ja15Zj2mtUzpsFwrqYEx2Urj63XeW+RhBILMR7oGkewICpsUj/U2I4yP8mVV g3Wa9D71pEEKo30YoD/hvEdT2xrP8w2T6VRx31FrMy7MgbstEBXFzo7TgY7FRhFu PDahIn7J26m68UN/Dvc2pWAlti1l/sRE2qxvwbZuBW8m+neEDnwWmHDji7p3h8BO 4Nv7Kf4YD4/pFAHQ52Bkx7POxlgcPa9OJGrHSHS8iKYpFnG7OmWJy/NfQFLYjBK8 aaONOE2uQrbrLtMyHosJ3WeHQmXaObaekA4XEpYVFv8Ok3W9ivK0CN2qTd8bO1oB qKJEv2aR1eZ0HyzIScy5 =vMmG -----END PGP SIGNATURE----- --=-Z1ncw4JtbJggG0zE9n44--