docker-curriculum
docker-curriculum copied to clipboard
[BUG] "ImportError: cannot import name 'url_quote' from 'werkzeug.urls'"
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
Or just Werkzeug<3.0.0
in the requirements.txt
I've updated only flask to 3.0.1 and it works fine
I've updated only flask to 3.0.1 and it works fine
Thanks , it works