Thread: Installation failure on Debian

Installation failure on Debian

From
Johann Spies
Date:
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'

Regards
Johann
-- 
Johann Spies                            Telefoon: 021-808 4699
Databestuurder /  Data manager        Faks: 021-883 3691

Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology 
Universiteit Stellenbosch.

The integrity and confidentiality of this email is governed by these terms / Hierdie terme bepaal die integriteit en
vertroulikheidvan hierdie epos. http://www.sun.ac.za/emaildisclaimer
 


Re: Installation failure on Debian

From
Murtuza Zabuawala
Date:
Already answered here


On Tue, Oct 17, 2017 at 5:46 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'

Regards
Johann
--
Johann Spies                            Telefoon: 021-808 4699
Databestuurder /  Data manager          Faks: 021-883 3691

Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology
Universiteit Stellenbosch.

The integrity and confidentiality of this email is governed by these terms / Hierdie terme bepaal die integriteit en vertroulikheid van hierdie epos. http://www.sun.ac.za/emaildisclaimer


Re: Installation failure on Debian

From
Dave Page
Date:


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

Re: Installation failure on Debian

From
Murtuza Zabuawala
Date:
Already answered here

On Tue, Oct 17, 2017 at 5:56 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Already answered here


On Tue, Oct 17, 2017 at 5:46 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'

Regards
Johann
--
Johann Spies                            Telefoon: 021-808 4699
Databestuurder /  Data manager          Faks: 021-883 3691

Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology
Universiteit Stellenbosch.

The integrity and confidentiality of this email is governed by these terms / Hierdie terme bepaal die integriteit en vertroulikheid van hierdie epos. http://www.sun.ac.za/emaildisclaimer



Re: Installation failure on Debian

From
Johann Spies
Date:
On Tue, Oct 17, 2017 at 05:56:16PM +0530, Murtuza Zabuawala wrote:
> Already answered here <Check
> https://stackoverflow.com/questions/46707935/oserror-errno-13-permission-denied-var-lib-pgadmin>

Thanks.

Johann
-- 
Johann Spies                            Telefoon: 021-808 4699
Databestuurder /  Data manager        Faks: 021-883 3691

Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology 
Universiteit Stellenbosch.

The integrity and confidentiality of this email is governed by these terms / Hierdie terme bepaal die integriteit en
vertroulikheidvan hierdie epos. http://www.sun.ac.za/emaildisclaimer