Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

"ImportError: cannot import name 'url_quote' from 'werkzeug.urls'" #57

Description

@tadwhitaker

Following the tutorial, I encountered the following error when trying to run '(env) $ flask run -p 5001'

  • "ImportError: cannot import name 'url_quote' from 'werkzeug.urls'"

I resolved this by specifying a specific version of Werkzeug based on this Stackoverflow discussion about a new update and that not being referenced correctly by Flask. I added 'Werkzeug==2.2.2' to your requirements.txt and that worked just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions