Skip to content
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

[BUG] "ImportError: cannot import name 'url_quote' from 'werkzeug.urls'" #383

Open
Zui0per opened this issue Dec 23, 2023 · 3 comments
Open
Labels

Comments

@Zui0per
Copy link

Zui0per commented Dec 23, 2023

After following the steps of the tutorial from start to finish I encountered the following error when trying to run:

docker run -p 8888:5000 yourusername/catnip

I encounter the following error in ./app.py:

ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.8/site-packages/werkzeug/urls.py)

It was fixed by setting "Werkzeug==2.2.2" in the requirements.txt
https://stackoverflow.com/questions/77213053/why-did-flask-start-failing-with-importerror-cannot-import-name-url-quote-fr

@Zui0per Zui0per added the bug label Dec 23, 2023
@akamom
Copy link

akamom commented Jan 24, 2024

Or just Werkzeug<3.0.0 in the requirements.txt

@GudoIlya
Copy link

GudoIlya commented Feb 2, 2024

I've updated only flask to 3.0.1 and it works fine

@cherriemm
Copy link

I've updated only flask to 3.0.1 and it works fine

Thanks , it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants