You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImportError: cannot import name 'parse_rule' from 'werkzeug.routing' (/root/airflow-venv/airflow_virtualenv/lib/python3.7/site-packages/werkzeug/routing/__init__.py) #25269
Hi all,
Can anyone guide me, I woke up in the morning and suddenly I have this issue with the ImportError, can anyone guide me, please?
File "/root/airflow-venv/airflow_virtualenv/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py", line 21, in <module> from flask_login import current_user File "/root/airflow-venv/airflow_virtualenv/lib/python3.7/site-packages/flask_login/__init__.py", line 12, in <module> from .login_manager import LoginManager File "/root/airflow-venv/airflow_virtualenv/lib/python3.7/site-packages/flask_login/login_manager.py", line 35, in <module> from .utils import _create_identifier File "/root/airflow-venv/airflow_virtualenv/lib/python3.7/site-packages/flask_login/utils.py", line 14, in <module> from werkzeug.routing import parse_rule ImportError: cannot import name 'parse_rule' from 'werkzeug.routing' (/root/airflow-venv/airflow_virtualenv/lib/python3.7/site-packages/werkzeug/routing/__init__.py)
Activity
rino0601 commentedon Jul 25, 2022
I also met this error, then I found my instance's werkzeug version was
2.2.0which is doesn't match with constraints-3.9.txt list. (
werkzeug==2.1.2)so I downgraded werkzeug to
2.1.2, problem solved in my case.Perhaps you can solve it this way.
rino0601 commentedon Jul 25, 2022
routing/__init__.py& miss parse_rule)I think we need werkzeug limitation (e.g
werkzeug<2.2) until flask_login are handle itpotiuk commentedon Jul 25, 2022
Closed by #25270
davidism commentedon Jul 25, 2022
Flask-Login 0.6.2 was released.
potiuk commentedon Jul 25, 2022
Tahnks @davidism !. I will test it out :)
potiuk commentedon Jul 25, 2022
#25291 is running now
kennyth01 commentedon Jul 26, 2022
thanks!