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

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: Ni Ne <nineoften(at)hotmail(dot)com>
Cc: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: Re: pgadmin4 suddenly not working - ImportError: cannot import name 'view_commit'
Date: 2021-07-12 04:25:02
Message-ID: CAM9w-_kseiuMjyabiS_773kaxekeZriSVon-NN4ZGqsiudw7hg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi Ni Ne,

The package - Flask-Security-Too is updated in the recent release. Can you
run pip install -r /usr/pgadmin4/web/requirements.txt for your python env ?

On Sat, Jul 10, 2021 at 1:20 AM Ni Ne <nineoften(at)hotmail(dot)com> wrote:

> 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!
>
>

--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | *edbpostgres.com*
<http://edbpostgres.com>
"Don't Complain about Heat, Plant a TREE"

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Nikhil Mohite 2021-07-12 07:20:15 Re: pgAdmin Not Giving Error Messages
Previous Message Ni Ne 2021-07-09 19:50:46 pgadmin4 suddenly not working - ImportError: cannot import name 'view_commit'