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 1uI1pO-00EPI7-3h for pgsql-admin@arkaria.postgresql.org; Thu, 22 May 2025 09:03:02 +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 1uI1pM-00HH39-R4 for pgsql-admin@arkaria.postgresql.org; Thu, 22 May 2025 09:03:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uI1pM-00HH30-Dc for pgsql-admin@lists.postgresql.org; Thu, 22 May 2025 09:03:00 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uI1pK-000HZV-0G for pgsql-admin@lists.postgresql.org; Thu, 22 May 2025 09:02:59 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-30c416cdcc0so74381321fa.2 for ; Thu, 22 May 2025 02:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747904577; x=1748509377; darn=lists.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=xe5BilxIWIv6UYMkl/ZU+UF1RI7taa08nTInoz/vqzU=; b=FrfUWAQZFjkZvNgxcej8R+I+z0AyzDNrI9MZzN81VMOqwJvmTd1TNOlADIBd8dcL+R fN30mhHIEnNN5cvJpQsbNtYKSl0PJF4h3mV8iGeKpUKwXibNJ4SECtV9K4Hjac49QonW ILXKIAC25neyP9rZXlCrTVm4E3pUrziBbIcnMnW9r/UqkzW0mPe2x923aJuNI+Tlxb6F ex1MKx33MeAaC2rF3UPv+m5ftoQbyTxfXnwHwSVD5/rgT+7o3C+V5W/zqLeWI44hs1cn XWWFuUGop3b8Z4kUIsicKuD8iidAm7fUWBoL7Zjw0Fvya44A92FgZZ2+QvDa1kwpDnxu xg/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747904577; x=1748509377; 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=xe5BilxIWIv6UYMkl/ZU+UF1RI7taa08nTInoz/vqzU=; b=M1aUHOYp/bSvKc+b6nMmE/anEei0G43ZT/ATmEhqt5DBaLc6r9hikkhGev3fbXvbQ/ EOgcExh5/MlTSj6Tlty3+TL+lE/9+5maiYXCcr7p6O0JBK4WvulGwlQH6i/xN4zld1C6 YLw8ZSTyBviw+W9rQ3u36W2vNN4ywE9rmut/UroF2tShSG3c8Re1vQMRUDdCZyWZTB+d 6jXlsv753RNjpri6btWoQuUD22F5gAo/ow1WY/lsoTiIB4t/xC1Vrj0PcM4lEftrhzt/ itHf0KuE13t+n/cJHSh4UnOLVGZtTUDbxoGPpEmXOwFIO9P4CIv9wcDcCtw/Qbe8m7rC VBHQ== X-Gm-Message-State: AOJu0YwJgHsV4WfFynf5RdoAHnGUCjVnarFjesTJaryEbMogqgOgDtvu gQbDbb3rHoFoK3XypCzDclW6TV/RncaebKCquhZrxan6ebZZXU3s7wb9DeaAeLTnOedJTxpcfat DEb1kYPznSDCyWsJ7tZpWRUMYVTkVf/Y= X-Gm-Gg: ASbGncvqU2Y+3l3aourvq9KiMLvLdvdiCvXVVOZ08lejnr7tIGOsSrmXxq+jyxiy8cW V1GVsgYOvQmFeP+H6eESHL7K82UDFcjC1NwGrB1taaptR1jSmTfwNdz4FtgRjzOJsXq8AdB1kQx RXuGhpOIVnjvXRxlovZAtzm73B2TKJruZu4Q== X-Google-Smtp-Source: AGHT+IFyRyDqgin0S0av7+0CjlhNBctypZshdVmdUnMdHCfhf0h9jYC9BdmxpllPLiINWaW4wffBzHq+piNIsbS2Hg8= X-Received: by 2002:a2e:a995:0:b0:30c:aae:6d61 with SMTP id 38308e7fff4ca-3280974eef6mr86689301fa.30.1747904576322; Thu, 22 May 2025 02:02:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: zaidagilist Date: Thu, 22 May 2025 14:08:02 +0500 X-Gm-Features: AX0GCFsCjc3TkBjpwHL8wgCs518S-cdRwtbMRGhOAj_oPg9-Irym6DWvYy3UE0M Message-ID: Subject: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system. To: Daulat Cc: pgsql-admin Content-Type: multipart/alternative; boundary="0000000000005f7dcc0635b5bff2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005f7dcc0635b5bff2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Daulat, I just ran the pgAdmin4 setup on my Ubuntu VM and followed the steps mentioned at this link . The installation and setup worked fine on my end. In my environment, Python 3.10.12 is installed. Regards, Zaid 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/ > > 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, > > > --0000000000005f7dcc0635b5bff2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Daulat,

I just ran the pgAdmin4 setup on my U= buntu VM and followed the steps mentioned at this link. The installation and setup wor= ked fine on my end. In my environment, Python 3.10.12 is installed.
Regards,
Zaid





On Thu, May 15, 2025 at 2:19=E2=80=AFPM Daulat <daulat.dba@gmail.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/

sudo python3.8 -m venv /usr/pgadmin4/venv
so= urce /usr/pgadmin4/venv/bin/activate

I followed th= e following steps=C2=A0from=C2=A0

Please advise.
<= br>
Thanks,


--0000000000005f7dcc0635b5bff2--