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 1uFVLk-005Byd-SW for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:58: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 1uFVLj-00DjPI-L7 for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:57: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 1uFVLj-00DjPA-9U for pgadmin-hackers@lists.postgresql.org; Thu, 15 May 2025 09:57: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 1uFVLg-0020hE-0f for pgadmin-hackers@postgresql.org; Thu, 15 May 2025 09:57:58 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5f76a47549cso211674a12.0 for ; Thu, 15 May 2025 02:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747303076; x=1747907876; 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=m+J3MLv4FnVz8vEHtxD+R3AspOxtzmEe/oQerXwgfBg=; b=S1aILlgW/dnlvSiWR9j/mYKwGHytgtwyyqg+WlqnbRhp108erWkFc+WB5cEjrHqaxc XAmcPcGjd1KBfZv+GRa8+CgQ5BCoz85CP5OqvJj2670PFMOwHG/d7y3/p2gjo/eddeZt UgKppvZNQpO13GmGmk/zNsaaJvcuDALIj3HL2QsFax2G0eCWLFNdBQIe9KgIYHW/DY5A qsA9KoGdn6p4qM93ykUoj7zW8lqhIUEBaNGvu5N1FZHCEBZOhtM4Rgqwed7OAJwS40xL Fug8H6BQMIW85tPTMGNZKj+w1FlKRnyrq/vWoumCGni/M54ZUhaq5Dtzbdbbj3O59hWi PU0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747303076; x=1747907876; 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=m+J3MLv4FnVz8vEHtxD+R3AspOxtzmEe/oQerXwgfBg=; b=XhlXQVM53Bfi2tgW9X2F0I2Pu9xFER1+KqEvjmc0vVmSZqmH6T99VqMIGkk9n3NWgH N8Cc0q1ZfX/qnhD7f8w+nu2H89bz94FHFPgLewGps6XOVnZI7ZB1m5RXDL+kExYBxyYZ BgdnxbQOCAMrNlfP+3ZfIlG7Tug9VZbX2jRKJVCg3T7Tp/4EtClyy/tYOQVa8PK1lE9l EDOGLDrUdSfR39btYTzXtJehLvEFU7mAQ1LYw7qcdMUTtQss+d4RhoHSqxGbrGez5vx3 vrUxZUoeHWrB85N0ad00b0/xFsCO9nscqDPXxLjJWxUNlZqCRJg0aVWdgCFz7DDqkTn5 loLw== X-Forwarded-Encrypted: i=1; AJvYcCUhq/OiISX0Czz3CDPokadhPzqEvUoEwMseNLqmNri5Imz8rnnPYg8tL1Lxt/bp/zxhKd8deyVzVKB0Kpj3vpE=@postgresql.org X-Gm-Message-State: AOJu0YzY2du4MtQoa38QSyd7k0QYKpVP2WuZp1t07mlAnISBUOwt2R4/ RLe6orXd5uiwgJLWvE4hBrYTADcL8aXfj5ttfHDoZreC7KxALBpbGC5BQxKnQnoZH6Dh0VK0+Q6 EQ/cjxnOQceOuTDKHLkthg2PZq5Sa6BYn3BcqTg== X-Gm-Gg: ASbGncspYtwGtPRiDBf9gFuU5h1AOaT7s+JetlnFhc4n1L/6RM3GuQkBF7umnjtpU9X GzwUMnLAbAD7d6/NzqJmEmhiakN9YuxP7+pgP4TQ5YByN0sz9OFwaVK/tw7P8BvF6lKll36cKvd awAPZfzcW3e4+ofrNvrpL1+oWxl1L5mJDV0w== X-Google-Smtp-Source: AGHT+IFpqHP6SnA4pUyMm9SvKgJ4EeznGpoFms33m0CZtJEctJ/NkdwClXFh+Lt4ZUR7oldhDixkLr4pJ31UhysThGI= X-Received: by 2002:a17:907:28d6:b0:abf:7a26:c472 with SMTP id a640c23a62f3a-ad4f7136581mr196695066b.4.1747303075485; Thu, 15 May 2025 02:57:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daulat Date: Thu, 15 May 2025 15:27:44 +0530 X-Gm-Features: AX0GCFsh1-n84-kMJJcohSyOhcYWUJRrEC04Iqv8CktLmtWO4xs_TdOCse5zllQ Message-ID: Subject: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system. To: Usman Khan Cc: Khushboo Vashi , pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000211fc2063529b353" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000211fc2063529b353 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrote= : > 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 wr= ote: >> >>> 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 w= rote: >>> >>>> 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.p= y >>>> 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, >>>> >>>> >>>> --000000000000211fc2063529b353 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes Ushman, this is not working.

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

Setting up pgAdmin 4 in web mod= e on a Debian based platform...
Creating configuration database...
/usr/pgadmin4/bin/setup-web.sh: line 75: /usr/pgadmin4/venv/bin/python3: N= o such file or directory
Error setting up server mode. Please examin= e the output above.

On Thu, May 15, 2025 at 3:16=E2=80=AFPM Usman Khan= <umk555@gmail.com= > wrote:
=
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 &= 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,


--000000000000211fc2063529b353--