pgadmin4 suddenly not working - ImportError: cannot import name 'view_commit'

From: Ni Ne <nineoften(at)hotmail(dot)com>
To: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: pgadmin4 suddenly not working - ImportError: cannot import name 'view_commit'
Date: 2021-07-09 19:50:46
Message-ID: CY4PR19MB0934283A5D5953646133EB46B5189@CY4PR19MB0934.namprd19.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

pgadmin4 was previously working, logged in this morning and now it's not. Am guessing an automatic yum update went through.

I am running CentOS 7, pgadmin4 5.4, Flask 1.1.2

This is the error I am getting in the apache error_log file:

mod_wsgi (pid=14087): Failed to exec Python script file '/usr/pgadmin4/web/pgAdmin4.wsgi'.
mod_wsgi (pid=14087): Exception occurred processing WSGI script '/usr/pgadmin4/web/pgAdmin4.wsgi'.
Traceback (most recent call last):
File "/usr/pgadmin4/web/pgAdmin4.wsgi", line 36, in <module>
from pgAdmin4 import app as application
File "/usr/pgadmin4/web/pgAdmin4.py", line 98, in <module>
app = create_app()
File "/usr/pgadmin4/web/pgadmin/__init__.py", line 689, in create_app
for module in app.find_submodules('pgadmin'):
File "/usr/pgadmin4/web/pgadmin/__init__.py", line 87, in find_submodules
module = import_module(module_name)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/pgadmin4/web/pgadmin/browser/__init__.py", line 35, in <module>
from flask_security.views import _security, view_commit, _ctx
ImportError: cannot import name 'view_commit'

Does anyone have any ideas on how to resolve? Thanks!

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Aditya Toshniwal 2021-07-12 04:25:02 Re: pgadmin4 suddenly not working - ImportError: cannot import name 'view_commit'
Previous Message Ross Holder 2021-07-09 12:37:10 Re: pgAdmin Location of <STORAGE_DIR>