{
  "id": "python/flask-importerror-cannot-import-name",
  "signature": "ImportError: cannot import name 'url_quote' from 'werkzeug.urls'",
  "signature_zh": "ImportError：无法从 'werkzeug.urls' 导入名称 'url_quote'",
  "regex": "ImportError:\\ cannot\\ import\\ name\\ 'url_quote'\\ from\\ 'werkzeug\\.urls'",
  "domain": "python",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "Version mismatch between Flask and Werkzeug; url_quote was removed in Werkzeug 2.3+.",
  "root_cause_type": "generic",
  "root_cause_zh": "Flask 和 Werkzeug 之间的版本不匹配；url_quote 在 Werkzeug 2.3+ 中被移除。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "May break other dependencies and is not a long-term fix.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Fragile and not recommended.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pip install --upgrade Flask",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Flask==2.3.0\nWerkzeug==2.3.0",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}