[pgAdmin4][Patch]: Properly handle builtins.SERVER_MODE variable whenSERVER_MODE is not set

Поиск
Список
Период
Сортировка
От Surinder Kumar
Тема [pgAdmin4][Patch]: Properly handle builtins.SERVER_MODE variable whenSERVER_MODE is not set
Дата
Msg-id CAM5-9D_wMSqSYGPiz0hjeO7L7uqqwAjQKNFQ6t+kAeSm__cx-g@mail.gmail.com
обсуждение исходный текст
Ответы Re: [pgAdmin4][Patch]: Properly handle builtins.SERVER_MODE variablewhen SERVER_MODE is not set  (Harshal Dhumal <harshaldhumal15@gmail.com>)
Re: [pgAdmin4][Patch]: Properly handle builtins.SERVER_MODE variablewhen SERVER_MODE is not set  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers

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

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Surinder Kumar
Дата:
Сообщение: [pgAdmin4][Patch]: Use standalone modules prop-types asReact.PropTypes has moved into a different package since React v15.5
Следующее
От: Ashesh Vashi
Дата:
Сообщение: pgAdmin 4 commit: Add capability to print the javascript consoleerrors