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 1uFVC4-005AEX-Nx for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:48:01 +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 1uFVC3-00DcuG-Sr for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:47:59 +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 1uFVC3-00Dcu0-KY for pgadmin-hackers@lists.postgresql.org; Thu, 15 May 2025 09:47:59 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uFVC0-0020Uh-1X for pgadmin-hackers@postgresql.org; Thu, 15 May 2025 09:47:59 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5fb55d8671dso134499a12.3 for ; Thu, 15 May 2025 02:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747302476; x=1747907276; 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=tB8LEC0D6JX0HVCgF5it3RnnMGj+E73FPwySPgN/TWs=; b=QRfaaTZz5294qmJpmDYXuQZL2jvt4BoNoSf/6/gPKgujVePpd1x/OIZ5TczXqrvONX vgl6fQrxkbbgMl4g8EvGCwvrzpgwcUVXcRYVbsvrMOFNoMHaAc9bEXQPz2Yvt7euaOX4 DR2Y72KLgDRSA412NuMnyQAmZR3NwQqlTaeSy2dUFcEAB547wIGjSbzSOcrFrRjrJ532 suPvT7bwe0HpsqvNVlBWydbZTkFH+1ihIKWaZxy8V+BwIobwCTXnKDmp2r0cHscfeYGQ fOcFVvmBWq4CbQ1nILnxC2jUFcpp98Kk9v5k6i6ig0eeKj3mulyCpnyTo+jT7JIb6oxS mOMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747302476; x=1747907276; 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=tB8LEC0D6JX0HVCgF5it3RnnMGj+E73FPwySPgN/TWs=; b=XgxFXLadg1q8TVMKVfq1nL2Pb2LyaEwGymPt6JyJB7fndqvDD7QkfWGI8i82/hDTBl WZWKRJ2du4lfW9Da4HElU4PhltJ3Inwp0tZIf4yNM7xmT/deYVznvwLnnL9CoG8itFuM jHmAEYI7bM2HpPCUqxSz6ILNqVT/ffJY+xXkx37WkQ9rL2t+E9KzkwNqpPweRVRgDnY0 VUX04w82SmSW72TJKo3IJ1cDURR6Y94YiG1icOterQOuCHmGIJWH/zLqL70rtAWooLSY zihc+dWCYYnqo/jKDgWLcAvBscvF/3yWXNQhzgdO/kuMEoElQljizi4uydTD2g9uK4Xl 8Qfg== X-Forwarded-Encrypted: i=1; AJvYcCW+PGD8IFaROb9oSZLrxoA9J4jV+z04nwQjYUi+WKD2HzIZZjkc5oOagcDZ/3YDANdRVbV1zS5LnDLNq8lg6/w=@postgresql.org X-Gm-Message-State: AOJu0Yzl2aBwF3OShCQ46g8QAlCpQ9xp1UauJ4QA6DSBlL4pDQGBuOq0 bmLu9ePeHk61MP9A6o33+p9UxBFumVKhNs2ocXIb1xDqLtg5mOugPI4aPhvasWNbmM3F8+R+162 iR9y1sdJeFrah/EISpOCszTcVMww= X-Gm-Gg: ASbGncvx3Bgix3Yznu4pRPDRe9dttc/MGl6EDHwNE7WHzXyjqyBkvuT4tOSYTuimrr+ g6gcNk+ak2J5FQ6uELyTQKpMmLmEWTWmj2zATp4EVLCuVMwLCESMKtSAAT+Js7C5XozPykd8SMp yAVIcIJ3MZWLqHHs++qAoKBSJx1jIblyP1XA== X-Google-Smtp-Source: AGHT+IEB53qGZ+kGVfTHd9EAafR8xbsuU5Sn5hhQjtuL+N/bmL3y+HBaRtvg/HxJLYodW/gz2/Ng/u5cPkzgbPsQ4lQ= X-Received: by 2002:a17:907:b586:b0:ace:3f65:1a0c with SMTP id a640c23a62f3a-ad4f753ab3bmr160711866b.16.1747302475492; Thu, 15 May 2025 02:47:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daulat Date: Thu, 15 May 2025 15:17:42 +0530 X-Gm-Features: AX0GCFtZ63CoDQ4CeAhLB7ccBc_uKm-ttbEki_lRy8BRYhVv7ouhRctDYh4u1GM Message-ID: Subject: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system. To: Khushboo Vashi Cc: Usman Khan , pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000005df4950635298f26" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005df4950635298f26 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Right Khushboo, The setup-web.sh file location is */usr/pgadmin4/bin, *you have mentioned /usr/pgadmin4/web/. On Thu, May 15, 2025 at 3:05=E2=80=AFPM Khushboo Vashi < khushboo.vashi@enterprisedb.com> wrote: > > > On Thu, May 15, 2025 at 2:59=E2=80=AFPM Usman Khan wro= te: > >> 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 wr= ote: >> >>> Hello Team, >>> >>> I am currently facing an issue while installing pgAdmin 4 in web mode o= n >>> 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 require= d >>> 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, >>> >>> >>> --0000000000005df4950635298f26 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Right Khushboo,

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



On Thu, May 15, 2025 at 3:05=E2=80=AFPM Khushboo Vashi <khushboo.vashi@enterprisedb.com>= ; wrote:


On Thu, May 15, 2025 at 2:59=E2=80=AFPM Usma= n Khan <umk555@gma= il.com> wrote:
adding pgadmin-hackers and removing pgsql-admin@list= s.postgresql.org for better guidance.
Please forward all= queries related to pgadmin to pgadmin-hackers@postgresql.org

<= div class=3D"gmail_quote">
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/


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,


--0000000000005df4950635298f26--