Доброго времени суток, при запуске python pgAdmin4.py стала прилетать ошибка следующего вида: TypeError: register() takes 3 positional arguments but 4 were given
Скорее всего проблема в версиях, подскажите, при каких все заработает снова?
Сергей Горностаев, >>>python pgAdmin4.py
Traceback (most recent call last):
File "/usr/lib/pgadmin4/web/pgAdmin4.py", line 94, in
app = create_app()
File "/usr/lib/pgadmin4/web/pgadmin/__init__.py", line 630, in create_app
app.register_blueprint(module)
File "/usr/lib/python3.9/site-packages/flask/scaffold.py", line 57, in wrapper_func
return f(self, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/flask/app.py", line 1028, in register_blueprint
blueprint.register(self, options)
File "/usr/lib/pgadmin4/web/pgadmin/utils/__init__.py", line 66, in register
super(PgAdminModule, self).register(app, options, first_registration)
TypeError: register() takes 3 positional arguments but 4 were given
Сергей Горностаев, установил flask 1.1.4, но теперь лезет такая ошибка:
Traceback (most recent call last):
File "/usr/lib/pgadmin4/web/pgAdmin4.py", line 94, in
app = create_app()
File "/usr/lib/pgadmin4/web/pgadmin/__init__.py", line 628, in create_app
for module in app.find_submodules('pgadmin'):
File "/usr/lib/pgadmin4/web/pgadmin/__init__.py", line 79, in find_submodules
module = import_module(module_name)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/usr/lib/pgadmin4/web/pgadmin/browser/__init__.py", line 33, in
from flask_security.views import _security, view_commit, _ctx
ImportError: cannot import name 'view_commit' from 'flask_security.views' (/usr/lib/python3.9/site-packages/flask_security/views.py)