Thread: pgadmin4 1.6 (python wheel) doesn't work under Ubuntu Server 16.04LTS
Hi everybody, pgadmin4 1.6 (python wheel) doesn't work under Ubuntu Server 16.04 LTS. We have installed pgadmin as usual (pgadmin4 1.5 works) but the new version 1.6 produces following web-error. /Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.18 (Ubuntu) Server at xxxxxx.de Port 443/ The apache2 err-log gives the following messages: [Wed Jul 19 10:44:25.920310 2017] [wsgi:warn] [pid 1331:tid 140523746342784] mod_wsgi: Compiled for Python/2.7.11. [Wed Jul 19 10:44:25.920372 2017] [wsgi:warn] [pid 1331:tid 140523746342784] mod_wsgi: Runtime using Python/2.7.12. [Wed Jul 19 10:44:25.921482 2017] [mpm_event:notice] [pid 1331:tid 140523746342784] AH00489: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations [Wed Jul 19 10:44:25.921507 2017] [core:notice] [pid 1331:tid 140523746342784] AH00094: Command line: '/usr/sbin/apache2' [Wed Jul 19 10:44:33.929353 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] mod_wsgi (pid=1334): Target WSGI script '/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi' cannot be loaded as Python module. [Wed Jul 19 10:44:33.929392 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] mod_wsgi (pid=1334): Exception occurred processing WSGI script '/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi'. [Wed Jul 19 10:44:33.929422 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] Traceback (most recent call last): [Wed Jul 19 10:44:33.929454 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] File "/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi", line 17, in <module> [Wed Jul 19 10:44:33.929541 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] import config [Wed Jul 19 10:44:33.929562 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] File "/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/config.py", line 24, in <module> [Wed Jul 19 10:44:33.929736 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_path [Wed Jul 19 10:44:33.929759 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] File "/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/__init__.py", line 17, in <module> [Wed Jul 19 10:44:33.929995 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] from flask import Flask, abort, request, current_app, session [Wed Jul 19 10:44:33.930035 2017] [wsgi:error] [pid 1334:tid 140523617588992] [remote xxxxx:57147] ImportError: No module named flask [Wed Jul 19 10:44:37.688464 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] mod_wsgi (pid=1334): Target WSGI script '/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi' cannot be loaded as Python module. [Wed Jul 19 10:44:37.688497 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] mod_wsgi (pid=1334): Exception occurred processing WSGI script '/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi'. [Wed Jul 19 10:44:37.688530 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] Traceback (most recent call last): [Wed Jul 19 10:44:37.688567 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] File "/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgAdmin4.wsgi", line 17, in <module> [Wed Jul 19 10:44:37.688610 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] import config [Wed Jul 19 10:44:37.688627 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] File "/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/config.py", line 24, in <module> [Wed Jul 19 10:44:37.688652 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_path [Wed Jul 19 10:44:37.688668 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] File "/opt/pgadmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/__init__.py", line 17, in <module> [Wed Jul 19 10:44:37.688692 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] from flask import Flask, abort, request, current_app, session [Wed Jul 19 10:44:37.688733 2017] [wsgi:error] [pid 1334:tid 140523416139520] [remote xxxxx:52519] ImportError: No module named flask info: the module flask ist already installed, activated and runs with version 1.5 I have searched for few days without any results, can you please help me? Best Reguards -- View this message in context: http://www.postgresql-archive.org/pgadmin4-1-6-python-wheel-doesn-t-work-under-Ubuntu-Server-16-04-LTS-tp5971865.html Sent from the PostgreSQL - pgadmin support mailing list archive at Nabble.com.
I found the solution. We loaded the wrong virtualenv enviroment. -- View this message in context: http://www.postgresql-archive.org/pgadmin4-1-6-python-wheel-doesn-t-work-under-Ubuntu-Server-16-04-LTS-tp5971865p5972330.html Sent from the PostgreSQL - pgadmin support mailing list archive at Nabble.com.
On Fri, Jul 21, 2017 at 11:53 AM, deluk <ludger.koehler@krzn.de> wrote:
I found the solution.
We loaded the wrong virtualenv enviroment.
I think we've all done that :-)
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company