Thread: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system.
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 PM 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:/usr/pgadmin4/venv/bin/python3: can't open file '/usr/pgadmin4/web/setup.py': [Errno 2] No such file or directoryls -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 venvSince 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/activateI followed the following steps fromPlease advise.Thanks,
On Thu, May 15, 2025 at 2:59 PM 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.orgOn Thu, May 15, 2025 at 2:19 PM 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:/usr/pgadmin4/venv/bin/python3: can't open file '/usr/pgadmin4/web/setup.py': [Errno 2] No such file or directoryls -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 venvSince 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/activateI followed the following steps fromPlease advise.Thanks,
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.shwork for you?
On Thu, May 15, 2025 at 2:35 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
On Thu, May 15, 2025 at 2:59 PM 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.orgOn Thu, May 15, 2025 at 2:19 PM 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:/usr/pgadmin4/venv/bin/python3: can't open file '/usr/pgadmin4/web/setup.py': [Errno 2] No such file or directoryls -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 venvSince 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/activateI followed the following steps fromPlease advise.Thanks,
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 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
On Thu, May 15, 2025 at 2:59 PM 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.orgOn Thu, May 15, 2025 at 2:19 PM 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:/usr/pgadmin4/venv/bin/python3: can't open file '/usr/pgadmin4/web/setup.py': [Errno 2] No such file or directoryls -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 venvSince 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/activateI followed the following steps fromPlease advise.Thanks,
Yes Ushman, this is not working.
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.
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 PM 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 not triggering the command alone/usr/pgadmin4/bin/setup-web.shwork for you?On Thu, May 15, 2025 at 2:35 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:On Thu, May 15, 2025 at 2:59 PM 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.orgOn Thu, May 15, 2025 at 2:19 PM 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:/usr/pgadmin4/venv/bin/python3: can't open file '/usr/pgadmin4/web/setup.py': [Errno 2] No such file or directoryls -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 venvSince 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/activateI followed the following steps fromPlease advise.Thanks,