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
We've fixed the Flask library version to 2.2.2 but when pip resolves requirements on Ubuntu 22.04 we get werkzeug 3.0.0 which is incompatible with Flask 2.x.
Using werkzeug 2.2.3 fixes the problem (the final Flask 2.2 compatible version.)
As a side note, Flask 3 and werkzeug 2.3 makes some major API changes, including deprecating werkzeug.urls (need to use urllib instead) and dropping support for Python 3.7.
The text was updated successfully, but these errors were encountered:
Additionally, if bumping to Flask 3 we have to bump to flask-babel 4 as well. They are all interdependent, with the common goal of dropping support for Python 3.7.
However the flask-babel API has changed so it's not as easy as just bumping the lib version. At least the method to initialize the Babel app has changed from Babel(app) to babel.init_app(app, locale_selector=get_locale) while the @babel.localeselector decorator isn't used anymore.
We've fixed the Flask library version to 2.2.2 but when pip resolves requirements on Ubuntu 22.04 we get werkzeug 3.0.0 which is incompatible with Flask 2.x.
Using werkzeug 2.2.3 fixes the problem (the final Flask 2.2 compatible version.)
https://flask.palletsprojects.com/en/3.0.x/changes/
https://werkzeug.palletsprojects.com/en/3.0.x/changes/
As a side note, Flask 3 and werkzeug 2.3 makes some major API changes, including deprecating werkzeug.urls (need to use urllib instead) and dropping support for Python 3.7.
The text was updated successfully, but these errors were encountered: