docker-curriculum icon indicating copy to clipboard operation
docker-curriculum copied to clipboard

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

Open Zui0per opened this issue 1 year ago • 3 comments

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 avatar Dec 23 '23 19:12 Zui0per

Or just Werkzeug<3.0.0 in the requirements.txt

akamom avatar Jan 24 '24 20:01 akamom

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

GudoIlya avatar Feb 02 '24 21:02 GudoIlya

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

Thanks , it works

cherriemm avatar Apr 18 '24 09:04 cherriemm