Re: Installation failure on Debian

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Johann Spies <jspies(at)sun(dot)ac(dot)za>, pgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: Installation failure on Debian
Date: 2017-10-17 12:26:47
Message-ID: CA+OCxoxqnqgdykqTsU7ZXLjZ2ftKRMjnxaviGSwptQdbm4aUFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Tue, Oct 17, 2017 at 1:16 PM, Johann Spies <jspies(at)sun(dot)ac(dot)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

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Murtuza Zabuawala 2017-10-17 12:28:23 Re: Installation failure on Debian
Previous Message Murtuza Zabuawala 2017-10-17 12:26:16 Re: Installation failure on Debian