Re: pgAdmin 4 as Web application - Mailing list pgadmin-hackers

From Dave Page
Subject Re: pgAdmin 4 as Web application
Date
Msg-id CA+OCxoyR4X=OfGCjj8CP=4N-T0ooOpL3WND3u-rRcJzcVR5idQ@mail.gmail.com
Whole thread Raw
In response to Re: pgAdmin 4 as Web application  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Responses Re: pgAdmin 4 as Web application  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgadmin-hackers
On Fri, Sep 2, 2016 at 1:45 PM, Albe Laurenz <laurenz.albe@wien.gv.at> wrote:
> Ashesh Vashi wrote:
>>> Now I'm getting to the same error as with the standalone version, see
>>> https://www.postgresql.org/message-
>
>> Looks like the Python 2.6 compatibility has been broken.
>>
>> For now - can you use Python 2.7/3?
>
> I tried again on a RHEL 7 machine with Python 2.7.5 and the
> latest development version of pgAdmin4.
>
> Now I get the following error:
>
> mod_wsgi (pid=20880): Target WSGI script '/opt/pgadmin4/pgAdmin4.wsgi' cannot be loaded as Python module.
> mod_wsgi (pid=20880): Exception occurred processing WSGI script '/opt/pgadmin4/pgAdmin4.wsgi'.
> Traceback (most recent call last):
>   File "/opt/pgadmin4/pgAdmin4.wsgi", line 8, in <module>
>     from pgAdmin4 import app as application
>   File "/opt/pgadmin4/pgAdmin4.py", line 58, in <module>
>     app = create_app()
>   File "/opt/pgadmin4/pgadmin/__init__.py", line 204, in create_app
>     import pgadmin.utils.paths as paths
> AttributeError: 'module' object has no attribute 'paths'
>
> Indeed there is no pgadmin/utils/paths directory with a __init__.py in it.

No, but there should be a pgadmin/utils/paths.py file. Is that there?

FYI, I'm running a test server on CentOS 7 - my Apache config looks like this:

    WSGIDaemonProcess pgadmin processes=1 threads=25
    WSGIScriptAlias /pgadmin4 /opt/pgAdmin4/web/pgAdmin4.wsgi

    <Directory /opt/pgAdmin4/web>
        WSGIProcessGroup pgadmin
        WSGIApplicationGroup %{GLOBAL}
        Require all granted
    </Directory>

That's working with the pgAdmin4.wsgi file unmodified from git.

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

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin website commit: 1.0 RC 1
Next
From: Dave Page
Date:
Subject: Re: RM#1387 [Add-on PATCH] Bad handling of missing connection database server