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

From Ashesh Vashi
Subject Re: pgadmin4: Server does not launch
Date
Msg-id CAG7mmoxJcAkupPiZsrbtAiZj_wqYkzWC3Z+Mi8DvYTJVRAhU3Q@mail.gmail.com
Whole thread Raw
In response to Re: pgadmin4: Server does not launch  (Colin Beckingham <colbec@kingston.net>)
Responses Re: pgadmin4: Server does not launch  (Colin Beckingham <colbec@kingston.net>)
List pgadmin-hackers


On Jun 8, 2016 20:54, "Colin Beckingham" <colbec@kingston.net> wrote:
>
>
>
> On 08/06/16 09:57, Dave Page wrote:
>>
>> On Wed, Jun 8, 2016 at 2:46 PM, Ashesh Vashi
>> <ashesh.vashi@enterprisedb.com> wrote:
>>>
>>> On Jun 8, 2016 18:53, "Colin Beckingham" <colbec@kingston.net> wrote:
>>>>
>>>> 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.
>>>
>>> Did you run setup.py before launching the runtime?
>>
>> If I had to guess, there's a mis-match between the Python environment
>> that the runtime is being built in, and the one Colin thinks he's
>> configured.
>>
>> I would start by running the web-app and ignoring the runtime;
>>
>> 1) cd web
>> 2) Create config_local.py
>> 3) python pgAdmin4.py
>> 4) Point the browser at the URL given
>>
> Progress. With clean pip2 all the requirements seem to be ok. Ran step 3 as above and was challenged for an email and password, entered, then error with psycopg2. In the requirements check the output found a psycopg2, removed it and then installed the new one and seemed happy.
>
> ~/pgadmin4/web> python pgAdmin4.py
>
> Traceback (most recent call last):
>   File "pgAdmin4.py", line 53, in <module>
>     app = create_app()
>   File "/home/colin/pgadmin4/web/pgadmin/__init__.py", line 216, in create_app
>     driver.init_app(app)
>   File "/home/colin/pgadmin4/web/pgadmin/utils/driver/__init__.py", line 39, in init_app
>     DriverRegistry.load_drivers()
>   File "/home/colin/pgadmin4/web/pgadmin/utils/driver/registry.py", line 87, in load_drivers
>     module = import_module(module_name)
>   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
>     __import__(name)
>   File "/home/colin/pgadmin4/web/pgadmin/utils/driver/psycopg2/__init__.py", line 21, in <module>
>     import psycopg2
>   File "/usr/lib64/python2.7/site-packages/psycopg2/__init__.py", line 67, in <module>
>     import psycopg2.extensions as _ext
>   File "/usr/lib64/python2.7/site-packages/psycopg2/extensions.py", line 61, in <module>
>     from psycopg2._psycopg import ISQLQuote, Notify, Diagnostics, Column
> ImportError: cannot import name Column

It seems the problem is with the psycopg2 library.
It may not be installed properly.

Please run python in interactive mode.
And, import psycopg2.

--
Thanks & Regards,
Ashesh Vashi
>
>
>
>
> --
> 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: Colin Beckingham
Date:
Subject: Re: pgadmin4: Server does not launch
Next
From: Dave Page
Date:
Subject: pgAdmin 4 commit: Make the Grant Wizard non-modal.