Skip to content

Issue with Werkzeug bump #5279

Closed as not planned
Closed as not planned
@ghawes85

Description

@ghawes85

I have a few Flask applications running on Flask 2.3.2. On deployment today, the 2 apps went down. Error:

File "/tmp/8dbc37810e69912/wsgi.py", line 3, in
2023-10-03T02:41:50.698042229Z from application import create_app
2023-10-03T02:41:50.698045529Z File "/tmp/8dbc37810e69912/application/init.py", line 8, in
2023-10-03T02:41:50.698049029Z from flask_login import login_required
2023-10-03T02:41:50.698052329Z File "/tmp/8dbc37810e69912/antenv/lib/python3.10/site-packages/flask_login/init.py", line 12, in
2023-10-03T02:41:50.698055829Z from .login_manager import LoginManager
2023-10-03T02:41:50.698059729Z File "/tmp/8dbc37810e69912/antenv/lib/python3.10/site-packages/flask_login/login_manager.py", line 33, in
2023-10-03T02:41:50.698066830Z from .utils import _create_identifier
2023-10-03T02:41:50.698070030Z File "/tmp/8dbc37810e69912/antenv/lib/python3.10/site-packages/flask_login/utils.py", line 14, in
2023-10-03T02:41:50.698073530Z from werkzeug.urls import url_decode
2023-10-03T02:41:50.698076930Z ImportError: cannot import name 'url_decode' from 'werkzeug.urls'

I noticed that a few days ago werkzeug was bumped from 2.7.2 to 3.0.0

Pinning werkzeug back to 2.7.2 in my project resolves my issue.

Environment:

  • Python version: 3.10.0
  • Flask version: 2.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions