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).
https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7.7-x86_64/
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 CompressImportError: No module named 
flask_compress

Gerry

Reply via email to