Skip to content

ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.11/dist-packages/werkzeug/urls.py) #74

@theosanderson

Description

@theosanderson

Hello,

when I try to run the Natively instructions in the README I get:

Traceback (most recent call last):
  File "/content/drs-compliance-suite/compliance_suite/report_runner.py", line 9, in <module>
    from compliance_suite.report_server import start_mock_server
  File "/content/drs-compliance-suite/compliance_suite/report_server.py", line 1, in <module>
    from flask import Flask, render_template
  File "/usr/local/lib/python3.11/dist-packages/flask/__init__.py", line 5, in <module>
    from .app import Flask as Flask
  File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 29, in <module>
    from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/usr/local/lib/python3.11/dist-packages/werkzeug/urls.py)

I found this locally but I have also reproduced in a colab environment:

https://colab.research.google.com/drive/1bBovCMT8DmAMw_yEaMeqKxMjy_v0AOSr#scrollTo=qhuyMLAQXmqp

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