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 1uFVAx-005A0M-3x for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:46:51 +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 1uFVAv-00DcMA-G1 for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:46:49 +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 1uFVAv-00DcL4-4y for pgadmin-hackers@lists.postgresql.org; Thu, 15 May 2025 09:46:49 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uFVAr-001tvw-1P for pgadmin-hackers@postgresql.org; Thu, 15 May 2025 09:46:48 +0000 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-b200047a6a5so1588912a12.0 for ; Thu, 15 May 2025 02:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747302405; x=1747907205; 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=emGQC1JwlGYWZthG0TeTAxTVYp6hmkO2y5086JyFpYg=; b=QkQhiaJ6aNHjYwTr2/azy/LdGAiYMWu3u8hThAQhWFJQ/vupApYSaU1I6A7/ro6OvY hIzjQZW/nXlFXkq3JQm8sWScDQjS1AH5L9ff39UwNxHl8aQAqBr3MmUTH8UL4KTLGNeR ttGjrZ/eSodoATH2ZGAAtRntSr/idEqPZMd7CsCn9kpe44mHg6tL9zUl3NEMNqLCpjv9 XDB9erhqMuiWJmemmbdsLTP/h+31332q8OMhaRSP+IhO01abpxFL3+YD/WQklsNWDjJe IqdS3yGoREwJPYdV08XStEHiAdZWjEGhQ+Y9gWVMoAH7CxtNqHDEMNKn+1T8IJSoP87g N9Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747302405; x=1747907205; 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=emGQC1JwlGYWZthG0TeTAxTVYp6hmkO2y5086JyFpYg=; b=FxqPNaRKFOQFJJ/fDSYiwvBvsI7G2qCwSRW7PkACRs7+C8DFPIeX3axMm+YV0nmY06 sxs53QMrYm+ZIrAJdege/FqPbQXMrmBmWMtRIYGKg2KoOrNPT2qhxBoLZ0sA/uuCwWZe N/kIYsnFAGZoNp0A1D9XSddwVTS82NqKBUWoAz3Z90/xDO6eKW2TAFiIwV92cIxL3xGW CmXmLCTk+mvsvbMQj3FGNQZsU3pgxzHFvtXj5Dt5mcDeJgTE5ygetX9s0gtisOG426M4 5vGGqrvSxg74AMoJKJafePiSa2lY1HArZbhvN/juHgS/n9jR5RqzjKeWsIYCldsSxme7 wb9w== X-Forwarded-Encrypted: i=1; AJvYcCX+R0/M9xC5AUJ+XpHHQpwIE5cdVJQl+dlkCo4UyhcREc+zJk2p6CLIfjfkBNE1w5tnIdg/kDSB1xngb0FctLk=@postgresql.org X-Gm-Message-State: AOJu0YwFoQagi7LjSBugAwEWSUXqP6QSZfJmcpe97hkqE4H/u+V3Bzkw xsevK2y/Wr1gZw5bDsuIGpi54nNGOjlLVM21umnolkX0AKM4rUFUKXphGg32v+vIfpGT5uT3jSz o2lkh4f0Wle2Rh1r4FUmF7nCbZ5c= X-Gm-Gg: ASbGncv34TcDI4t1jlC8kbW/TdjnzU26gs/fR+XizO+w5vNw+wzjWWOUc+9sDR+aihe 7JGR72vPEAJlBq7s3tcx4jeZ7u/z/95d1NxXzT7IkCict8jJ3j4oK94VR/rEB3yoQAGP/uLoZZE abVQOD29RkG8dQN5QLd94kRtY/C/Nx6PdE1g== X-Google-Smtp-Source: AGHT+IFNr1x3GX14humEOSMSLCbvPH6JZPJyDxTLXNdFslgK+ZCsqB5rYxESOf46J+wdLUtdbDe3HNRdxknEUiSbl7E= X-Received: by 2002:a17:90b:3d88:b0:306:b593:455e with SMTP id 98e67ed59e1d1-30e4dacf5e3mr4557557a91.1.1747302405124; Thu, 15 May 2025 02:46:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Usman Khan Date: Thu, 15 May 2025 14:46:33 +0500 X-Gm-Features: AX0GCFvlNdvwKVKTJTlXZqbIpcKPTTKG8oWC4bH1UZmocAy_-oNu1NaQuVng9ak Message-ID: Subject: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system. To: Khushboo Vashi Cc: Daulat , pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000002c35770635298b9a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002c35770635298b9a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Daulat, If you have installed it through apt package, why do you need to activate 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 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, >>> >>> >>> --0000000000002c35770635298b9a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Daulat,
If you have installed it through= apt package, why do you need to activate the virtual environment? should n= ot 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 T= hu, May 15, 2025 at 2:59=E2=80=AFPM Usman Khan <umk555@gmail.com> wrote:
adding = pgadmin-hackers and removing pgsql-admin@lists.postgresql.org for better gui= dance.
Please forward all queries related to pgadmin to pgadmin-hac= kers@postgresql.org

On Thu, May 15, 2025 at 2:19=E2=80=AFPM Daula= t <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,


--0000000000002c35770635298b9a--