Re: pgadmin4: Server does not launch

From: Colin Beckingham <colbec(at)kingston(dot)net>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: pgadmin4: Server does not launch
Date: 2016-06-08 13:23:02
Message-ID: 57581C36.6050208@kingston.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)kingston(dot)net
> <mailto:colbec(at)kingston(dot)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(at)postgresql(dot)org
> <mailto:pgadmin-hackers(at)postgresql(dot)org>)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Ashesh Vashi 2016-06-08 13:46:24 Re: pgadmin4: Server does not launch
Previous Message Surinder Kumar 2016-06-08 13:19:35 Re: [pgAdmin4][Patch]: RM#1268 - Add a Help button to the bottom left of the Wizard framework