Re: Installation failure on Debian - Mailing list pgadmin-support

From Dave Page
Subject Re: Installation failure on Debian
Date
Msg-id CA+OCxoxqnqgdykqTsU7ZXLjZ2ftKRMjnxaviGSwptQdbm4aUFg@mail.gmail.com
Whole thread Raw
In response to Installation failure on Debian  (Johann Spies <jspies@sun.ac.za>)
List pgadmin-support


On Tue, Oct 17, 2017 at 1:16 PM, Johann Spies <jspies@sun.ac.za> wrote:
I am trying pgadmin4 again.

I have downloaded pgadmin4-2.0-py2.py3-none-any.whl and did the following
(following the instructions on https://www.pgadmin.org/download/pgadmin-4-python-wheel/):

$ pyvenv-3.6 pgadmin4
$ cd pgadmin4
$ . bin/activate
$ pip3 install ~Downloads/pgadmin4-2.0-py2.py3-none-any.whl
$ python lib/python3.6/site-packages/pgadmin4/pgAdmin4.py
Traceback (most recent call last):
  File "lib/python3.6/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module>
    exec(open(file_quote(setupfile), 'r').read())
  File "<string>", line 46, in <module>
  File "/home/js/pgadmin4/lib/python3.6/site-packages/pgadmin4/pgadmin/setup/data_directory.py", line 23, in create_app_data_directory
    _create_directory_if_not_exists(os.path.dirname(config.SQLITE_PATH))
  File "/home/js/pgadmin4/lib/python3.6/site-packages/pgadmin4/pgadmin/setup/data_directory.py", line 15, in _create_directory_if_not_exists
    os.mkdir(_path)
PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'

https://www.pgadmin.org/docs/pgadmin4/2.x/server_deployment.html#python says (though I recommend reading the entire page):

"NOTE: You must ensure the directories specified are writeable by the user that the web server processes will be running as, e.g. apache or www-data." 


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgadmin-support by date:

Previous
From: Murtuza Zabuawala
Date:
Subject: Re: Installation failure on Debian
Next
From: Murtuza Zabuawala
Date:
Subject: Re: Installation failure on Debian