PGAdmin Can't Load Flask-Compress

From: G Fourteener <gfourteener(at)yahoo(dot)com>
To: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: PGAdmin Can't Load Flask-Compress
Date: 2020-01-30 18:48:49
Message-ID: 1466783480.316819.1580410129539@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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).
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

Browse pgadmin-support by date

  From Date Subject
Next Message Олег Милаш 2020-02-03 06:35:20 install error
Previous Message Dave Caughey 2020-01-30 14:42:21 Re: Backing up database fails