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 1uFUuC-0056o7-T8 for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:29:33 +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 1uFUuB-00DSuW-Gi for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:29:31 +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 1uFUuB-00DSuO-9y for pgadmin-hackers@lists.postgresql.org; Thu, 15 May 2025 09:29:31 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uFUu8-0020M1-19 for pgadmin-hackers@postgresql.org; Thu, 15 May 2025 09:29:31 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-22fa414c565so6039145ad.2 for ; Thu, 15 May 2025 02:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747301367; x=1747906167; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=5V4FW2MMrykxOIjxkvNT8zuqKchAP3pK01RPD4wzQyY=; b=ME1tFWp2jeg0ja/33Wny4LDEzkbTxCPBcVtyBc0PvLkNTwvya4qjvBWfPdmrmAJFnY PmCbkE8T0r66I5XQe69Q6kInc0o9z8Q161/4Tdkbmwn53QR5+MH/Ua/Td/Q6FGrDLhvR wijGhlBHc9r7k9xK4RxosLishE1lkVYQSWHH6EUHjHmHD7Y9CHDo0noHp3cdnTx5p2L7 J/ZmVMDaqaCzHgUDpX3kfwgJB1WIQ+ldWWNg3LRkqbjqzLW1oHYur2TONYR2ZFVR3G1y dLLh7MzANjbSYJAy8WSYBwGXe0datwKLvrt0czxjNlbPttbVHlPzWhbhD6iGOHFqeUVH gPWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747301367; x=1747906167; h=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=5V4FW2MMrykxOIjxkvNT8zuqKchAP3pK01RPD4wzQyY=; b=FKJlYd6CxgS0VlvRtbHdiK/M7xVRP6dCgFGWOxl2KZO+nsfy5p9P9exQPrNV2JMeyC IFwrxOWO1NTaxJ/To+j2DDSRGAotmSVsNZiRUSVA3tJ9O54Mr1whdiMOvovSnyB69J6u vPqH1gm5D+U5sB7m1ug7Sf1BZiPxW4RA7qiaIr0LntFzoj8Pf9CXKLzqx3kVldNpgrMz asTpEzLB8igLmBZmTRc/tuAvv7SbfeQNj5C45idqYn3A1kajHu0KQDNN36TRSTWCoN0N GlTEJIvP0k263oSY1c2px0ONCUQ/HamZCb/LYT1YgtIOIKHAoWa5nHZy9SVRdUar/dnO wtqQ== X-Forwarded-Encrypted: i=1; AJvYcCVqIta9baNzm+TuUDps3K08/wFe4jFKK57aJFp+MnVeAwnJxiJZeqJBYpegy3c6cK4mD8X4ZtCRkuZfD2J8VEw=@postgresql.org X-Gm-Message-State: AOJu0Yx4LLoN81TwlUSkiRkC6cHlR71cOZ3T+xhndnnqg7UNor3ZMrxM 8u/OAF8/x2fqgzbKCsdMS6f1xqp7k1SlmvGYtMXye68beJLckPk9O5hSdf/kIBS7xgNaL0Es7IT vuvUV+KDYMy72u8Dyo5njr2RL0ZidIW0h X-Gm-Gg: ASbGncueZL2c+2jw2fTUAmVZIwCyHhrw+MRQzr/xWK5ku0z5tNsGXBT2y0vJf4b8A++ KExtlNVxP5dpDzN91gCxBmnBX51xZMZTgZ22hBhevS9/RCidVs6582jNVUZDSX74ZYqN54O/YIF R6wEp8RSHOnuYAzD9fD3JJWWJTTENqcWUGMw== X-Google-Smtp-Source: AGHT+IFq6rWHWw2Sce8yBCF7zm8mVzU7t0poY6h9hrSS+w5C302LHmtOI1FO33uvlbaVkZzqiDRmQwbJ0B6Ejut9700= X-Received: by 2002:a17:903:3b87:b0:22f:a932:5374 with SMTP id d9443c01a7336-231b6029209mr28014285ad.48.1747301366587; Thu, 15 May 2025 02:29:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Usman Khan Date: Thu, 15 May 2025 14:29:13 +0500 X-Gm-Features: AX0GCFvSl5sczu_7u-5xwy02m77_jTWXtq64Ts-01LNniupxmKE0IEHNiqCJbA0 Message-ID: Subject: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system. To: Daulat , pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000004566210635294db1" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000004566210635294db1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/ > > 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, > > > --0000000000004566210635294db1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
adding pgadmin-hackers and removing pgsql-admin@lists.postgresql.org for= better guidance.
Please forward all queries related to pgad= min to pgadmin-hackers@po= stgresql.org

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

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,


--0000000000004566210635294db1--