I had the same problem. It is because Werkzeug 3.0.0 was released and Flask doesn't specify the dependency correctly (requirements says Werkzeug>=2.2.0). This is why, Werkzeug 3.0.0 is still installed and Flask 2.2.2 isn't made for Werkzeug 3.0.0.
Solution: Just set a fix version for Werkzeug such as Werkzeug==2.2.2 in your requirements.txt and it should work.
I had the same problem. It is because Werkzeug 3.0.0 was released and Flask doesn't specify the dependency correctly (requirements says Werkzeug>=2.2.0). This is why, Werkzeug 3.0.0 is still installed and Flask 2.2.2 isn't made for Werkzeug 3.0.0.
Solution: Just set a fix version for Werkzeug such as Werkzeug==2.2.2 in your requirements.txt and it should work.
The root cause of this is that Werkzeug 3.0.0 removed previously deprecated code: https://werkzeug.palletsprojects.com/en/3.0.x/changes/#version-3-0-0
Please update your Flask version, Flask 2.2.2 is unsupported: https://github.com/pallets/flask/releases
Anyway, you need to pin Werkzeug yourself then if you insist on using a deprecated version of Flask, or if your code is using url_quote directly then you can switch to the built-in urllib:
from urllib.parse import quote as url_quote
cannot import name 'url_quote' from 'werkzeug.urls' when using show(dt.explain_global())
Cannot import name 'url_quote' from 'werkzeug.urls'
werkzeug 3.0.0 Import issue with url_quote
Problems deploying endpoint for service which previously worked fine through azure machine learning
I am new into this Ai stuff and learning to use the codes... So I'm so confused right now because this keeps happening and i don't know how to fix it... Can someone help me please? :(