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 1uFUzf-0057td-3z for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:35:11 +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 1uFUze-00DYQf-9o for pgadmin-hackers@arkaria.postgresql.org; Thu, 15 May 2025 09:35:10 +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 1uFUze-00DYQX-0d for pgadmin-hackers@lists.postgresql.org; Thu, 15 May 2025 09:35:10 +0000 Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uFUzZ-0020PD-2o for pgadmin-hackers@postgresql.org; Thu, 15 May 2025 09:35:08 +0000 Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-e7b451b708aso551424276.3 for ; Thu, 15 May 2025 02:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1747301704; x=1747906504; 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=QsvzsZ6W7QyJa6V/zjkfh5bt8+PWx2y+nD1KPfc0uZA=; b=fMn0NU48nyVMtGSKpe1QIDqCkCrxTUouaaJUdGQvaCBoUFkUDg/djS1U/GiNwCPbe0 dXaCjXKpdO9ZuZ3wfhwHK0RZs9ABHFR6ndhVn2eb8iDzJXYFc3v4ZY/BfgAIwHqzOErZ GxipRc7yKiZaMh4t28bJbfpPYTsDHX5eneW0qDS6UBzEDIJ2CkC+5yR+5mbxaNykMKMr Yo91gsBE6t2hIE022H8zkaJZeP1KR/xdw/Z7c9xuqOysUOFdjfSuXiXCVcexDTNk+Ns4 R9PIf5kda5lmUvCQ9btiyh2rvf00WyBely9/lNsZzJD6hZgyjL5GZxG/3HoPZiVdczwM AwIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747301704; x=1747906504; 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=QsvzsZ6W7QyJa6V/zjkfh5bt8+PWx2y+nD1KPfc0uZA=; b=lZLnsq0trzMyGHPm2e5hCuqvZNr+BT9lAd70/cZDUqmYoNfpP3OYqbwUbblyemwI3v YTNru5gvuf4f6RFWJMSQr7+fbG9P7+c8zPddOFChbm64OMoxDDuriLwk6NnvSSkqWzG9 X6JKe+CGeoH3oHb4SeYs7ChjZr94XHZ3bK5Xd4u9GNxMPSaEUVWb0qHPMP36fxmhgyKr gbuCjObbzz0JdQPNSHmzHIrYMVvEjFxKXlyrlR9gMYAl4fE+nRbkHzvlNKJ1y9vEdBYx RVOngPNkH+5jrgALXHbXM7MjXnA5BZeuXSnsb2TZIrnL8HbTsHIfFSM+tdkVb5u1flBl AsBg== X-Forwarded-Encrypted: i=1; AJvYcCWJiYq4jUWW6q10F2cn0E9KyrD480iivVg7WTP6DVP+onuOd9kwqut+VrHWf3XOiswTpn1T5DGGzUEt//M7uvI=@postgresql.org X-Gm-Message-State: AOJu0YxdegbNW3Sosk8e6APl6JTfnuU8p61foZVqgh1P3Fv1+Jigi5Ll +P+LKp63hlMIVWL2R9vvtBt96gS3lQdE7HnJx7mk9Jee3V+25iMz20KEwzudvqEjbidkZgqV5Xe X/34ljcvD3YIbXBCWgiiP1d4aRBH1X2Joj4l/ X-Gm-Gg: ASbGncti1XWQcndg8zQyP7Z+t/kst07WpGeUD5E31LyeSlrpUTo9CzGmS/HKtoug3by x0cLGnjygCtRoXE/Y92tm7cr47md2jj2D47UHqA06SqrAAOlm1Z1ZyWDBx49GF1DeOmC+UO413N IL3Sq5LGhqX5zTgXykQWzK0Jt/wihQ1zF12wc= X-Google-Smtp-Source: AGHT+IGbxpgyXjI2zLP2LnJ16IJVeKYm+UMA9bKq1obue3ksX7vnlfS3WRArK7/fWRZV5Ibz17l7suDswha2tI+WYAM= X-Received: by 2002:a05:6902:144b:b0:e7a:a7fd:87f2 with SMTP id 3f1490d57ef6-e7b3d53614dmr8802391276.28.1747301703881; Thu, 15 May 2025 02:35:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Khushboo Vashi Date: Thu, 15 May 2025 15:04:52 +0530 X-Gm-Features: AX0GCFsJBxbjsYe-s7cMclLYSkFMflAnh5pyhztDtz809Lol5h9zbaDqUh2OY-I Message-ID: Subject: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system. To: Usman Khan Cc: Daulat , pgadmin-hackers Content-Type: multipart/alternative; boundary="00000000000060319406352961a0" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000060319406352961a0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 15, 2025 at 2:59=E2=80=AFPM Usman Khan wrote= : > 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 wro= te: > >> 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/ >> >> 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, >> >> >> --00000000000060319406352961a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, 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 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 <daulat.dba@gmail.com> wrote:
Hell= o 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,


--00000000000060319406352961a0--