Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uFVfz-005Fwc-Di for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 10:18:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uFVfw-00Dmif-Tu for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 10:18:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uFVfw-00DmiX-Kt for pgadmin-hackers@lists.postgresql.org; Thu, 15 May 2025 10:18:52 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uFVfs-0020pD-2S for pgadmin-hackers@postgresql.org; Thu, 15 May 2025 10:18:51 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-326b683ac3aso21697851fa.0 for ; Thu, 15 May 2025 03:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1747304328; x=1747909128; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FwdW2oFlO1KtqYhF8ol5e0F8Td3+s67eEtmpKINnVak=; b=ZGqjeJkICLHcPagzkX50UpyVd8vIsA9TV5wK89FpXYSCR/AZwkmylU6+9tAyYqXauP QVs69GCAB4V6zploArNc3hPUmR6gLW5ncw5S2Aue2b/9GVya75QjzdAsykaA4D9XecyK Nj6M77D3w3cfWpeU+2X0oHrHumiWxcQj1wghkjUgEl34IAxWguoNGhPeN1xPaun+/tDo 6wf3S9EAsDcyZ9znKZ46iWNt1BK/l/jctU1GkvAVjNvFqWsrezoZcqr8fKjfXBalBzAd CSCZbelvvXEuyqTDEnsI1U6L/qOEiuibH5P6/xMw8UDfce9JMcb1R8JIDbpcjQH5HAub 3SfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747304328; x=1747909128; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FwdW2oFlO1KtqYhF8ol5e0F8Td3+s67eEtmpKINnVak=; b=liouAN2oRrLo3x55VSuq0t0PrsFyy3ApAAQbL4fokwmSBbnZz60qULbdNejpMprlAO rKkMh46vO5C73VU2z4JI9bbmlsgpMo7ruQKVLK++I2h05O6PMYeUS1iiETi9wVBlTDUh wUHEaEEcFe1UW0o0qT4WqenrMj9M12T495oYb9ick/AXt456PN7Z9bnNqvApPu4yJMtL qLDZB318miXr4VFgNjZBge/IkHjGjKIGyGWoh6FBoOTtPSSIX/rbnixgyDSBwrdg+wCm DVd3apWMgBA4SHNYmdOpM5jR5dWYX8lZNjjm0g+VRsOLJnxNwBnWWJxtJLAcxu3AXUHs EwiQ== X-Forwarded-Encrypted: i=1; AJvYcCUF89S5Hig8cE9gUDxL/v9QSfBGkOAoh5yDx8efet0wQ891ZE9Ed3P9Qvx+vv5gvYKCVgBWmQXgqKCfbktGG9k=@postgresql.org X-Gm-Message-State: AOJu0Yw8PsZTsCexCGC/Gwk4fJYAu2RxyZJOzwTXof6B/bfyjQNJXTDH mHBbtRZ1RAYTqrm6y5aYBLEOQakgBr7U1CUojztI84cyCcf9DMuNhOlUloPvHh1jmJGfHt4HGvK CAp3mMtQCiObrwTFryRTW5vK+zjp2sJ8qxT1zJUvv X-Gm-Gg: ASbGncuowgnXstTw6Bf42/aObP4/vYBqIZ97B1DgEFIKOBhO0FzLUCo2HCKKeBHO0Ld hvqrs0XTh8E4Kasd/JKanP8MjFj71y1X+gYNR4yDuGZWvZbO/U2Pq+YOyh6e09+6ZTqaq3jBoRd AAdDdntQWdbmNLxCHh80qs1ETtO5T95kjYLxicK9NRD41j423M1lX8Y/xDZYg/FLCBwA== X-Google-Smtp-Source: AGHT+IH1W1xFKXVIy8IgL2hyh+y4YANJDWtEmp/6yJ+iEab1vceSOCQ11rQGoNuYE6GFD3mt9Rz3u7riA4SQd4RK78I= X-Received: by 2002:a05:6512:304b:b0:549:8b4d:bd47 with SMTP id 2adb3069b0e04-550db91fa77mr1033427e87.9.1747304327611; Thu, 15 May 2025 03:18:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Thu, 15 May 2025 15:48:35 +0530 X-Gm-Features: AX0GCFtgi9syYVXEq-Pk8WrtigXfndEs34gQpyyd7F6iCJMMUXjpLXePoLBHVuM Message-ID: Subject: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system. To: Daulat Cc: Usman Khan , Khushboo Vashi , pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000c31de3063529fdf0" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c31de3063529fdf0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable FYI, pgAdmin 4 v9.2 is the last version to offer official support for Ubuntu 20.04 On Thu, May 15, 2025 at 3:28=E2=80=AFPM Daulat wrote= : > Yes Ushman, this is not working. > > sudo /usr/pgadmin4/bin/setup-web.sh > > Setting up pgAdmin 4 in web mode on a Debian based platform... > Creating configuration database... > */usr/pgadmin4/bin/setup-web.sh: line 75: /usr/pgadmin4/venv/bin/python3: > No such file or directory* > Error setting up server mode. Please examine the output above. > > On Thu, May 15, 2025 at 3:16=E2=80=AFPM Usman Khan wro= te: > >> Hi Daulat, >> If you have installed it through apt package, why do you need to activat= e >> the virtual environment? should not triggering the command alone >> >> */usr/pgadmin4/bin/setup-web.sh* >> >> work for you? >> >> On Thu, May 15, 2025 at 2:35=E2=80=AFPM Khushboo Vashi < >> khushboo.vashi@enterprisedb.com> wrote: >> >>> >>> >>> On Thu, May 15, 2025 at 2:59=E2=80=AFPM Usman Khan w= rote: >>> >>>> adding pgadmin-hackers and removing pgsql-admin@lists.postgresql.org >>>> for better guidance. >>>> Please forward all queries related to pgadmin to >>>> pgadmin-hackers@postgresql.org >>>> >>>> On Thu, May 15, 2025 at 2:19=E2=80=AFPM Daulat = wrote: >>>> >>>>> Hello Team, >>>>> >>>>> I am currently facing an issue while installing pgAdmin 4 in web mode >>>>> on an Ubuntu 20.04 (Focal) system. >>>>> >>>>> Error: >>>>> >>>>> /usr/pgadmin4/venv/bin/python3: can't open file >>>>> '/usr/pgadmin4/web/setup.py': [Errno 2] No such file or directory >>>>> >>>>> ls -l /usr/pgadmin4 >>>>> total 24 >>>>> drwxr-xr-x 4 root root 4096 May 15 09:01 bin >>>>> -rw-r--r-- 1 root root 11206 Apr 2 10:26 sbom-desktop.json >>>>> -rw-r--r-- 1 root root 474 Apr 2 10:26 sbom-web.json >>>>> drwxr-xr-x 6 root root 4096 May 15 08:58 venv >>>>> >>>>> Since the pgAdmin installation did not automatically create the >>>>> required virtual environment, I manually set it up using python3.8 -m= venv >>>>> /usr/pgadmin4/venv, but the setup still fails due to a missing setup.= py >>>>> file in /usr/pgadmin4/web/ >>>>> >>>>> >>> The setup-web.sh file location is */usr/pgadmin4/bin, *you have >>> mentioned /usr/pgadmin4/web/. >>> >>> >>> >>>> sudo python3.8 -m venv /usr/pgadmin4/venv >>>>> source /usr/pgadmin4/venv/bin/activate >>>>> >>>>> I followed the following steps from >>>>> https://www.pgadmin.org/download/pgadmin-4-apt/ >>>>> >>>>> Please advise. >>>>> >>>>> Thanks, >>>>> >>>>> >>>>> --000000000000c31de3063529fdf0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
FYI,=C2=A0pgAdmin 4 v9.2 is the last version to offer offi= cial support for Ubuntu 20.04

On Thu, May 15, 2025 at = 3:28=E2=80=AFPM Daulat <daulat.d= ba@gmail.com> wrote:
Yes Ushman, this is not working.

sudo /usr/pgadmin4/bin/setup-web.sh

Setting up pgAdmin = 4 in web mode on a Debian based platform...
Creating configuration datab= ase...
/usr/pgadmin4/bin/setup-web.sh: line 75: /usr/pgadmin4/venv/bi= n/python3: No such file or directory
Error setting up server mode. P= lease examine the output above.

<= div dir=3D"ltr" class=3D"gmail_attr">On Thu, May 15, 2025 at 3:16=E2=80=AFP= M Usman Khan <umk5= 55@gmail.com> wrote:
Hi Daulat,
If you have installe= d it through apt package, why do you need to activate the virtual environme= nt? should not triggering the command alone
/usr/pgadmin4/bin/setup-web.sh
work for you?

On Thu, May 15, 2025 at 2:35=E2=80=AFPM Khushboo Vashi &= lt;khu= shboo.vashi@enterprisedb.com> wrote:

On Thu, M= ay 15, 2025 at 2:59=E2=80=AFPM Usman Khan <umk555@gmail.com> wrote:
adding pgadm= in-hackers and removing pgsql-admin@lists.postgresql.org for better guidance= .
Please forward all queries related to pgadmin to pgadmin-hacker= s@postgresql.org

On Thu, May 15, 2025 at 2:19=E2=80=AFPM Daulat &l= t;daulat.dba@gmai= l.com> wrote:
Hello Team,

I am currently facing an issue while installing pgAdmin 4 in web mode on an= Ubuntu 20.04 (Focal) system.

Error:=C2=A0

/usr/pgadmi= n4/venv/bin/python3: can't open file '/usr/pgadmin4/web/setup.py= 9;: [Errno 2] No such file or directory

ls -l /usr/pgadmi= n4
total 24
drwxr-xr-x 4 root root =C2=A04096 May 15 09:01 bin
-rw= -r--r-- 1 root root 11206 Apr =C2=A02 10:26 sbom-desktop.json
-rw-r--r--= 1 root root =C2=A0 474 Apr =C2=A02 10:26 sbom-web.json
drwxr-xr-x 6 roo= t root =C2=A04096 May 15 08:58 venv

Since the = pgAdmin installation did not automatically create the required virtual envi= ronment, I manually set it up using python3.8 -m venv /usr/pgadmin4/venv, b= ut the setup still fails due to a missing setup.py file in /usr/pgadmin4/we= b/


The setup-web.sh file location is=C2=A0/usr/pgadmin4/bin,=C2=A0you have mentioned=C2=A0/usr/pgadmin4/web/.

=C2= =A0
sudo python3.8 -m venv /usr/pgadmin4/venv
source /usr= /pgadmin4/venv/bin/activate

I followed the followi= ng steps=C2=A0from=C2=A0

Please advise.

=
Thanks,


--000000000000c31de3063529fdf0--