Re: pgadmin4: Server does not launch - Mailing list pgadmin-hackers

From Colin Beckingham
Subject Re: pgadmin4: Server does not launch
Date
Msg-id 57581C36.6050208@kingston.net
Whole thread Raw
In response to Re: pgadmin4: Server does not launch  (Ashesh Vashi <ashesh.vashi@enterprisedb.com>)
Responses Re: pgadmin4: Server does not launch  (Ashesh Vashi <ashesh.vashi@enterprisedb.com>)
List pgadmin-hackers
Thanks.  config_local.py did not exist. I created one in the "web" directory, with entries for SECRET_KEY, SECURITY_PASSWORD_SALT and CSRF_SESSION_KEY (with fabricated entry values) as detailed in the code in https://github.com/asheshv/pgadmin4/blob/master/web/pgAdmin4.py, redid qmake, make clean and make, but same result on launch of pgAdmin4. Strange that I did not see the print comment on programme's fail to see the file.

On 08/06/16 08:49, Ashesh Vashi wrote:

Hi,

What do you have in config_local. py?

It is failing to load that file.

--
Thanks & Regards,
Ashesh Vashi

On Jun 8, 2016 17:45, "Colin Beckingham" <colbec@kingston.net> wrote:
FWIW I can build a pgAdmin4 file ok on openSUSE linux, but on launch I see:

~/pgadmin4/runtime> ./pgAdmin4
Python path:  "/usr/lib64/python2.7"
Webapp path:  "/home/colin/pgadmin4/web/pgAdmin4.py"
Traceback (most recent call last):
  File "/home/colin/pgadmin4/web/pgAdmin4.py", line 23, in <module>
    import config
  File "/home/colin/pgadmin4/web/config.py", line 255, in <module>
    from config_local import *
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2222, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 2164, in _find_spec
  File "<frozen importlib._bootstrap>", line 1940, in find_spec
  File "<frozen importlib._bootstrap>", line 1914, in _get_spec
  File "<frozen importlib._bootstrap>", line 2049, in find_spec
  File "<frozen importlib._bootstrap>", line 53, in _path_join
  File "<frozen importlib._bootstrap>", line 53, in <listcomp>
TypeError: Type str doesn't support the buffer API
"Failed to launch the application server, server thread exiting."


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

pgadmin-hackers by date:

Previous
From: Surinder Kumar
Date:
Subject: Re: [pgAdmin4][Patch]: RM#1268 - Add a Help button to the bottom left of the Wizard framework
Next
From: Ashesh Vashi
Date:
Subject: Re: pgadmin4: Server does not launch