Skip to content

Python server ImportError: cannot import name 'url_quote' from 'werkzeug.urls #2312

@NicholasRasi

Description

@NicholasRasi

Bug report

Describe the bug

Error with Python server.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. stripe samples create accept-a-payment
  2. select html as client
  3. select python as server
  4. start the server
  5. error: ImportError: cannot import name 'url_quote' from 'werkzeug.urls'

Expected behavior

The server starts successfully.

System information

  • OS: Linux
  • Server environment: Python

Additional context

Adding a fixed Werkzeug version to the requirements.txt fixes the problem (Werkzeug==2.2.2)

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