Re: Running pgAdmin4 - Mailing list pgadmin-hackers

From Prasad Somwanshi
Subject Re: Running pgAdmin4
Date
Msg-id trinity-e50f38f1-ec42-420e-82b2-c4780610671c-1443770001202@3capp-mailcom-lxa12
Whole thread Raw
In response to Re: Running pgAdmin4  (Dave Page <dpage@pgadmin.org>)
Responses Re: Running pgAdmin4  ("Prasad Somwanshi" <prasad.s@mail.com>)
List pgadmin-hackers
Ok, in that case, probably it's broken. Error mean, it doesn't like running python code in separate thread.

regards,
Prasad
 
 

Sent: Friday, October 02, 2015 at 7:54 AM
From: "Dave Page" <dpage@pgadmin.org>'t
To: "Prasad Somwanshi" <prasad.s@mail.com>
Cc: pgadmin-hackers <pgadmin-hackers@postgresql.org>
Subject: Re: [pgadmin-hackers] Running pgAdmin4

The desktop runtime hasn't been tested in months afaik, so it's entirely possible something is broken at the moment. It
isonly PoC code right now. 

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

EnterpriseDB UK:http://www.enterprisedb.com[http://www.enterprisedb.com/]
The Enterprise PostgreSQL Company
On 2 Oct 2015, at 07:25, Prasad Somwanshi <prasad.s@mail.com[prasad.s@mail.com]> wrote:
 
Has anybody encountered this ? Or it's just me ?

regards,
Prasad
 
 

Sent: Thursday, October 01, 2015 at 10:09 AM
From: "Prasad Somwanshi" <prasad.s@mail.com[prasad.s@mail.com]>
To: pgadmin-hackers <pgadmin-hackers@postgresql.org[pgadmin-hackers@postgresql.org]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4
I think, I did. Is there any specific settings I might have missed there ?

regards,
Prasad
 
 

Sent: Thursday, October 01, 2015 at 6:34 AM
From: "Ashesh Vashi" <ashesh.vashi@enterprisedb.com[ashesh.vashi@enterprisedb.com]>
To: "Prasad Somwanshi" <prasad.s@mail.com[prasad.s@mail.com]>
Cc: pgadmin-hackers <pgadmin-hackers@postgresql.org[pgadmin-hackers@postgresql.org]>
Subject: Re: [pgadmin-hackers] Running pgAdmin4

On Thu, Oct 1, 2015 at 2:19 AM, Prasad Somwanshi <prasad.s@mail.com[prasad.s@mail.com]> wrote:

Hi,

I'm trying to pgAdmin4. I'm able to run pgAdmin4.py in python shell. And server runs.And able to access using browser.
Then I tried running desktop application, it throws following error,

Traceback (most recent call last):
  File "/home/prasad/Development/pgadmin4/web/pgAdmin4.py", line 73, in <module>
    app.run(port=server_port)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
    run_simple(host, port, self, **options)
  File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/serving.py", line 622, in run_simple
    reloader_type)
  File "/usr/local/lib/python2.7/dist-packages/Werkzeug-0.10.1-py2.7.egg/werkzeug/_reloader.py", line 263, in
run_with_reloader
    signal.signal(signal.SIGTERM, lambda *args: sys.exit(0))
ValueError: signal only works in main thread
Initial connection failed. Retrying in 2 seconds.
Initial connection failed. Retrying in 3 seconds.
Initial connection failed. Retrying in 4 seconds.
Initial connection failed after multiple attempts. Aborting.


I can see what error says. As Qt application spawns separate thread to run server, which apparently is not allowed.
Am I missing something ?
Have you created config_local.py?
 

--
Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company[http://www.enterprisedb.com[http://www.enterprisedb.com]]
 

http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi][http://www.linkedin.com/in/asheshvashi[http://www.linkedin.com/in/asheshvashi]]]
regards,
Prasad


--
Sent via pgadmin-hackers mailing list
(pgadmin-hackers@postgresql.org[pgadmin-hackers@postgresql.org][pgadmin-hackers@postgresql.org[pgadmin-hackers@postgresql.org]])
To make changes to your subscription:

http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]]


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org[pgadmin-hackers@postgresql.org])
To make changes to your subscription:

http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers][http://www.postgresql.org/mailpref/pgadmin-hackers[http://www.postgresql.org/mailpref/pgadmin-hackers]]


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


pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: Running pgAdmin4
Next
From: Nikolai Zhubr
Date:
Subject: Re: Building pgadmin on windows - instructions?