Thread: PGAdmin Can't Load Flask-Compress

PGAdmin Can't Load Flask-Compress

From
G Fourteener
Date:
CentOS Linux 7.7.1908
pgadmin4 4.17-1.rhel7

After updating to the latest PGAdmin (which previously worked fine), I get a 500 error, due to PGAdmin not being able to load flask-compress (which I guess is newly included). Looking at the repo, the PGAdmin packages are Python 2.7, but Flask-Compress is Python 3, and installed in a different directory tree (/usr/lib/python3.6/site-packages/pgadmin4-web/ vs /usr/lib/python2.7/site-packages/pgadmin4-web).


mod_wsgi: Target WSGI script '/usr/lib/python2.7/site-packages/pgadmin4-web/pgAdmin4.wsgi' cannot be loaded as Python module.
mod_wsgi: Exception occurred processing WSGI script '/usr/lib/python2.7/site-packages/pgadmin4-web/pgAdmin4.wsgi'.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pgadmin4-web/pgAdmin4.wsgi", line 36, in <module>
   from pgAdmin4 import app as application
 File "/usr/lib/python2.7/site-packages/pgadmin4-web/pgAdmin4.py", line 109, in <module>
   app = create_app()
 File "/usr/lib/python2.7/site-packages/pgadmin4-web/pgadmin/__init__.py", line 709, in create_app
   from flask_compress import Compress
ImportError: No module named flask_compress


Gerry