{
  "id": "python/starlette-form-data-missing-python-multipart",
  "signature": "AssertionError: The `python-multipart` library must be installed to use form parsing.",
  "signature_zh": "AssertionError: 必须安装 `python-multipart` 库才能使用表单解析。",
  "regex": "AssertionError:\\ The\\ `python\\-multipart`\\ library\\ must\\ be\\ installed\\ to\\ use\\ form\\ parsing\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "FastAPI/Starlette form handling requires python-multipart, which is not installed.",
  "root_cause_type": "generic",
  "root_cause_zh": "FastAPI/Starlette 的表单处理需要 python-multipart，但该库未安装。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Form submissions are not JSON; parsing fails with a different error.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The assertion fires before the handler runs.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "pip install python-multipart",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "echo 'python-multipart>=0.0.9' >> requirements.txt",
      "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-06-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}