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
I have found that I had to explicitly set Flask and Werkzeug to 2.2.2 because Flask 3.0+ removed _app_ctx_stack and Werkzeug 3.0+ removing url_quote. The dependency versions for Flask and Werkzeuge should therefore be capped below version 3.0 in order to get a working installation instead of the current requirement of >= 2.2.2 for both.
Attached below is my install log.
Note: As I'm an Archlinux user, I had to use venv as Pacman controls the global Python installations.
Flask 3.0+ _app_ctx_stack Error: ImportError: cannot import name '_app_ctx_stack' from 'flask' (/home/###/contextualise/.venv/lib/python3.11/site-packages/flask/__init__.py)
Werkzeug 3.0+ url_quote Error: ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/###/contextualise/.venv/lib/python3.11/site-packages/werkzeug/urls.py)
Hi! Thanks for reporting the issue. Yes, you're right... updating to Flask version 3 did have some breaking changes. A fix is available on the develop branch. I'll take a proper look when I get back to my machine.
I have found that I had to explicitly set Flask and Werkzeug to 2.2.2 because Flask 3.0+ removed
_app_ctx_stack
and Werkzeug 3.0+ removingurl_quote
. The dependency versions for Flask and Werkzeuge should therefore be capped below version 3.0 in order to get a working installation instead of the current requirement of>= 2.2.2
for both.Attached below is my install log.
Note: As I'm an Archlinux user, I had to use venv as Pacman controls the global Python installations.
Flask 3.0+
_app_ctx_stack
Error:ImportError: cannot import name '_app_ctx_stack' from 'flask' (/home/###/contextualise/.venv/lib/python3.11/site-packages/flask/__init__.py)
Werkzeug 3.0+
url_quote
Error:ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/###/contextualise/.venv/lib/python3.11/site-packages/werkzeug/urls.py)
Successful Install:
The text was updated successfully, but these errors were encountered: