Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGl1C-0002mZ-Bp for pgadmin-hackers@arkaria.postgresql.org; Mon, 01 Mar 2021 16:03:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lGl1B-00027o-B6 for pgadmin-hackers@arkaria.postgresql.org; Mon, 01 Mar 2021 16:03:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGl1A-00027h-Vr for pgadmin-hackers@lists.postgresql.org; Mon, 01 Mar 2021 16:03:33 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lGl14-0004Gl-4d for pgadmin-hackers@lists.postgresql.org; Mon, 01 Mar 2021 16:03:31 +0000 Received: by mail-ed1-x536.google.com with SMTP id l12so21410564edt.3 for ; Mon, 01 Mar 2021 08:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=Hc10kCG8BCP6lFmts6yryVtUTH8olbXtMKK9vVCfxQI=; b=H2xhOGdi0pQqjUNk2Jgx8Zsj1PRdGtd7noQ2OGpbqvFP6HIqHF8INXiCjxAcaosGlX 1lcHaFjZEWKtr3l+e/xqY+ux+CSgVtDEx1Fbln6hFXZIBsI9NZM8wXvMRH+GpfY3uGrQ 1J2fCnb5F47S+yJNRpCzBmPsq7qJxDWcb8ntL6armV0dI/KZuM8HppYRNrRmohsjVdFr jupm72z/s1Cb7RNd6/EOp1IEzhqS/evg3/G5m7MG4Ow+vt/oUWSMcgb9bfsGHliyEr+c LgDmltsSfq5oX50BH2SUrDHiRtp+vkZNrPhW2DTuwNRAubhvNMyfEnQ1qaJeWW+VLinw s19g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=Hc10kCG8BCP6lFmts6yryVtUTH8olbXtMKK9vVCfxQI=; b=i4Dg4r7EDv7X4vdhlNLf7f+Gqn4JaptTu2SPFXsdt8ayWu3ItMxmpvD/u6NwPPL2xc rVqvB9HxI7JoAL/3xSWJVqq+L2ccODLbcZ1tPaUFLvYriC/B5YISQtjTFCvoNu3BCiWn EC473BSWHuA2zBrxaiiQBjEnLdqOwAcjNHfFPSQHiklvOCvTS03Y9pd5fxzXPVdGm1Ma JjL5dsN+KA37Df3PRT91f++BnMBMF7PB/GHP4ZTDt3JB9Fd29aWV/eYKvuDA4QNwcMuR EUSw5ZsTYvnNdToM9StUfurPcwNFN0NgchZeypXvbmcToAQUsJIKiebPaY1hJwSJid+V 5VRQ== X-Gm-Message-State: AOAM531cu/dm5h+5fTjonzme/hZJ8K6uTOOast83s3KcmWa2sV26X0HF /FzmP1UDbhRaccCEiH/XVSFukCcOv28= X-Google-Smtp-Source: ABdhPJxbN0D4Ea/uhLSPuaw9dviycuOwIXfwZalchCV/XjNPPLtXQLmjFappxfo+VjxYYYjsXuYyJQ== X-Received: by 2002:aa7:d547:: with SMTP id u7mr7856276edr.347.1614614603590; Mon, 01 Mar 2021 08:03:23 -0800 (PST) Received: from [192.168.0.13] ([95.180.105.28]) by smtp.gmail.com with ESMTPSA id s18sm18343058edc.21.2021.03.01.08.03.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Mar 2021 08:03:23 -0800 (PST) Subject: Re: pgAdmin 4 - desktop version - RPM To: Dave Page Cc: pgadmin-hackers References: From: =?UTF-8?Q?gmail_Vladimir_Kokovi=c4=87?= Message-ID: <9545fca2-3536-04a5-9834-b4fb78612b75@gmail.com> Date: Mon, 1 Mar 2021 17:03:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------EBE8D263809AA1C8462C4DC6" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------EBE8D263809AA1C8462C4DC6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Dave, You are absolutely right, you need to extract the server first and then the desktop RPM and the "pgAdmin 4" desktop version works! By the way, I'm on Linux Manjaro for which you don't have a package and that's why it's easiest to use the RPM package. On 1.3.21. 16:48, Dave Page wrote: > > > On Mon, Mar 1, 2021 at 3:25 PM gmail Vladimir Koković > > wrote: > > After many years of using "pgAdmin III", I tried several times to > run the "pgAdmin 4" desktop version, but always without success! > > So it is on this day in an attempt to run > pgadmin4-desktop-5.0-1.fc33.x86_64.rpm (snapshots/2021-03-01). > After extracting the files from the RPM to the /tmp/vk/rpm/desktop > folder based on > the /tmp/vk/rpm/desktop/usr/share/applications/pgadmin4.desktop > content and running pgadmin4: > > /tmp/vk/rpm/desktop/usr/pgadmin4/bin/pgadmin4 > folder /root/.local/share/pgadmin contains a log file which > mysteriously disappears after the end of pgadmin4, > with the following content: > > Python Path: "/tmp/vk/rpm/desktop/usr/pgadmin4/venv/bin/python3" > Runtime Config File: "/root/.config/pgadmin/runtime_config.json" > pgAdmin Config File: "/tmp/vk/rpm/desktop/usr/pgadmin4/web/config.py" > Webapp Path: "/tmp/vk/rpm/desktop/usr/pgadmin4/web/pgAdmin4.py" > pgAdmin Command: > "/tmp/vk/rpm/desktop/usr/pgadmin4/venv/bin/python3 > /tmp/vk/rpm/desktop/usr/pgadmin4/web/pgAdmin4.py" > Failed to lauch pgAdmin4 with below error: > Error: spawn ../venv/bin/python3 ENOENT > > /tmp/vk/rpm/desktop/usr/pgadmin4 does not contain "venv". > > > No, it wouldn't. The RPMs have dependencies, and by doing what you > have done here, those dependencies are not satisfied. At the very > least you'll need to unpack the -server RPM into the same directory > (and have libatomic, python3, postgresql-libs >= 11 and krb5-libs > *properly* installed), and even then I'm not 100% sure it'll work as > the packaging was neither designed or tested for manual unpacking and > relocation. > > If you follow the installation instructions on the website, it should > work just fine. > > -- > Dave Page > Blog: http://pgsnake.blogspot.com > Twitter: @pgsnake > > EDB: http://www.enterprisedb.com > --------------EBE8D263809AA1C8462C4DC6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hi Dave,

You are absolutely right, you need to extract the server first and then the desktop RPM and the "pgAdmin 4" desktop version works!

By the way, I'm on Linux Manjaro for which you don't have a package and that's why it's easiest to use the RPM package.

On 1.3.21. 16:48, Dave Page wrote:


On Mon, Mar 1, 2021 at 3:25 PM gmail Vladimir Koković <vladimir.kokovic@gmail.com> wrote:
After many years of using "pgAdmin III", I tried several times to run the "pgAdmin 4" desktop version, but always without success!

So it is on this day in an attempt to run pgadmin4-desktop-5.0-1.fc33.x86_64.rpm (snapshots/2021-03-01).
After extracting the files from the RPM to the /tmp/vk/rpm/desktop folder based on
the /tmp/vk/rpm/desktop/usr/share/applications/pgadmin4.desktop content and running pgadmin4:

/tmp/vk/rpm/desktop/usr/pgadmin4/bin/pgadmin4
folder /root/.local/share/pgadmin contains a log file which mysteriously disappears after the end of pgadmin4,
with the following content:

Python Path: "/tmp/vk/rpm/desktop/usr/pgadmin4/venv/bin/python3"
Runtime Config File: "/root/.config/pgadmin/runtime_config.json"
pgAdmin Config File: "/tmp/vk/rpm/desktop/usr/pgadmin4/web/config.py"
Webapp Path: "/tmp/vk/rpm/desktop/usr/pgadmin4/web/pgAdmin4.py"
pgAdmin Command: "/tmp/vk/rpm/desktop/usr/pgadmin4/venv/bin/python3 /tmp/vk/rpm/desktop/usr/pgadmin4/web/pgAdmin4.py"
Failed to lauch pgAdmin4 with below error:
Error: spawn ../venv/bin/python3 ENOENT

/tmp/vk/rpm/desktop/usr/pgadmin4 does not contain "venv".

No, it wouldn't. The RPMs have dependencies, and by doing what you have done here, those dependencies are not satisfied. At the very least you'll need to unpack the -server RPM into the same directory (and have libatomic, python3, postgresql-libs >= 11 and krb5-libs *properly* installed), and even then I'm not 100% sure it'll work as the packaging was neither designed or tested for manual unpacking and relocation.

If you follow the installation instructions on the website, it should work just fine.

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

EDB: http://www.enterprisedb.com

--------------EBE8D263809AA1C8462C4DC6--