PGAdmin Can't Load Flask-Compress - Mailing list pgadmin-support

From G Fourteener
Subject PGAdmin Can't Load Flask-Compress
Date
Msg-id 1466783480.316819.1580410129539@mail.yahoo.com
Whole thread Raw
List pgadmin-support
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

pgadmin-support by date:

Previous
From: Dave Caughey
Date:
Subject: Re: Backing up database fails
Next
From: Олег Милаш
Date:
Subject: install error