{
  "id": "python/fastapi-form-data-requires-python-multipart",
  "signature": "RuntimeError: Form data requires \"python-multipart\" to be installed.",
  "signature_zh": "RuntimeError: 表单数据需要安装\"python-multipart\"。",
  "regex": "RuntimeError:\\ Form\\ data\\ requires\\ \"python\\-multipart\"\\ to\\ be\\ installed\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Using Form(...) or File(...) without the python-multipart package installed.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用Form(...)或File(...)但未安装python-multipart包。",
  "versions": [
    {
      "version": "0.100.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "0.110.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If the client sends form-encoded data, FastAPI still needs multipart to parse it.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Wrong package name; FastAPI imports python_multipart.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.99,
      "how": "pip install python-multipart",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.97,
      "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-02-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}