New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
werkzeug 3.0.0 Import issue with url_quote #2789
Comments
NVM I think this new version of werkzeug (3.0.0) is not compatible with flask 2.2.2. |
You are using an unsupported version of Flask, please update to the latest version 3 if possible. 2.3 is also compatible. When writing an application, you must use a tool like pip-tools to pin your application's full dependency tree. This gives you reproducible deployments, allowing you to control when you get updates. Be sure to run your tests with deprecation warnings treated as errors so that you get notified of those types of changes early. Please review any of the following for more information: |
Thanks! This was a leaning listen |
This issue tracker is a tool to address bugs in Werkzeug itself. Please
use Pallets Discord or Stack Overflow for questions about your own code.
Getting this error message when on 3.0.0:
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.11/site-packages/werkzeug/urls.py)
Not getting this issue with version before 3.0.0
Describe how to replicate the bug.
Create a Dockerfile with
FROM python RUN pip install Flask==2.2.2 RUN pip install Werkzeug==3.0.0 RUN echo "from flask import Flask" >> app.py CMD python app.py
No issue at all is the expect output
Environment:
The text was updated successfully, but these errors were encountered: