python
install_error
ai_generated
true
AssertionError: The `python-multipart` library must be installed to use form parsing.
ID: python/starlette-form-data-missing-python-multipart
80%Fix Rate
90%Confidence
0Evidence
2024-06-05First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
FastAPI/Starlette form handling requires python-multipart, which is not installed.
generic中文
FastAPI/Starlette 的表单处理需要 python-multipart,但该库未安装。
Workarounds
-
98% success
pip install python-multipart
-
95% success
echo 'python-multipart>=0.0.9' >> requirements.txt
Dead Ends
Common approaches that don't work:
-
85% fail
Form submissions are not JSON; parsing fails with a different error.
-
90% fail
The assertion fires before the handler runs.