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

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

Description

Exercise URL

vscode ➜ /workspaces/mslearn-python-products (main) $ python app.py
Traceback (most recent call last):
  File "/workspaces/mslearn-python-products/app.py", line 1, in <module>
    from flask import Flask
  File "/home/vscode/.local/lib/python3.11/site-packages/flask/__init__.py", line 7, in <module>
    from .app import Flask as Flask
  File "/home/vscode/.local/lib/python3.11/site-packages/flask/app.py", line 28, in <module>
    from . import cli
  File "/home/vscode/.local/lib/python3.11/site-packages/flask/cli.py", line 18, in <module>
    from .helpers import get_debug_flag
  File "/home/vscode/.local/lib/python3.11/site-packages/flask/helpers.py", line 16, in <module>
    from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/vscode/.local/lib/python3.11/site-packages/werkzeug/urls.py)

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