Hi,

On Mon, Jul 12, 2021 at 10:25 PM Ni Ne <nineof...@hotmail.com> wrote:

> Hi and thank you for the response. Unfortunately I do not have a
> requirements.txt file at that location. I do have this one however:
>
> /usr/local/lib/python3.6/site-packages/pgadmin4/regression/requirements.txt
>
> But trying to install against that returns this error:
>
> python3 -m pip install -r
> /usr/local/lib/python3.6/site-packages/pgadmin4/regression/requirements.txt
> ERROR: Could not open requirements file: [Errno 2] No such file or
> directory:
> '/usr/local/lib/python3.6/site-packages/pgadmin4/regression/../../requirements.txt'
>
> I am also at the latest published verion of Flask-Security-Too for my
> platform - 4.0.1.
>
OK. Can you share "pip freeze" on your python virtual env ? From which
version did you upgrade to latest version ?

>
> Please let me know if there are other things I can try. Thank you!
>

> ------------------------------
> *From:* Aditya Toshniwal <aditya.toshni...@enterprisedb.com>
> *Sent:* Sunday, July 11, 2021 10:25 PM
> *To:* Ni Ne <nineof...@hotmail.com>
> *Cc:* pgadmin-support@lists.postgresql.org <
> pgadmin-support@lists.postgresql.org>
> *Subject:* Re: pgadmin4 suddenly not working - ImportError: cannot import
> name 'view_commit'
>
> 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 <nineof...@hotmail.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"
>


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

Reply via email to