| From: | Harshal Dhumal <harshaldhumal15(at)gmail(dot)com> |
|---|---|
| To: | Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com> |
| Cc: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
| Subject: | Re: [pgAdmin4][Patch]: Properly handle builtins.SERVER_MODE variable when SERVER_MODE is not set |
| Date: | 2017-09-18 06:18:22 |
| Message-ID: | CAE29nRkAUp3dihxxpScji-KwLt4bG58p49F8Ny0AShYxh8Yaww@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers |
I think this is similar issue..
https://redmine.postgresql.org/issues/2134
On Mon, Sep 18, 2017 at 11:16 AM, Surinder Kumar <
surinder(dot)kumar(at)enterprisedb(dot)com> wrote:
> Hi
>
> While configuring pgAdmin4 with Apache mod_wsgi, it fails to run apache
> server due to python error.
>
> [mod_wsgi (pid=12596): Target WSGI script '/opt/pgadmin4_2/virtualenv/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi' cannot be loaded as Python module.
> mod_wsgi (pid=12596): Exception occurred processing WSGI script '/opt/pgadmin4_2/virtualenv/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi'.
> Traceback (most recent call last):
> File "/opt/pgadmin4_2/virtualenv/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi", line 20, in <module>
> import config
> File "/opt/pgadmin4_2/virtualenv/lib/python2.7/site-packages/pgadmin4/config.py", line 118, in <module>
> if builtins.SERVER_MODE is None:
> AttributeError: 'module' object has no attribute 'SERVER_MODE'
>
> Reported by:
> Gabriel Sánchez
>
> Please find an attached patch.
>
> Thanks,
> Surinder
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Akshay Joshi | 2017-09-18 06:37:40 | pgAdmin 4 commit: Changed array representation and formatting for the d |
| Previous Message | Ashesh Vashi | 2017-09-18 06:13:31 | pgAdmin 4 commit: Updating the packing, and ci test scripts as per chan |