❌ Eroare la nivel de cod Python:
Form data requires "python-multipart" to be installed.
You can install "python-multipart" with:
pip install python-multipart
Eroare la pornirea FastAPI: Form data requires "python-multipart" to be installed.
You can install "python-multipart" with:
pip install python-multipart
Traceback (most recent call last):
File "/home/cuziceu/smartcu/bridge.py", line 10, in
from app.main import app
File "/home/cuziceu/smartcu/app/main.py", line 44, in
@app.post("/api/auth/register")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cuziceu/.local/lib/python3.11/site-packages/fastapi/routing.py", line 944, in decorator
self.add_api_route(
File "/home/cuziceu/.local/lib/python3.11/site-packages/fastapi/routing.py", line 883, in add_api_route
route = route_class(
^^^^^^^^^^^^
File "/home/cuziceu/.local/lib/python3.11/site-packages/fastapi/routing.py", line 519, in __init__
self.body_field = get_body_field(dependant=self.dependant, name=self.unique_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cuziceu/.local/lib/python3.11/site-packages/fastapi/dependencies/utils.py", line 815, in get_body_field
check_file_field(final_field)
File "/home/cuziceu/.local/lib/python3.11/site-packages/fastapi/dependencies/utils.py", line 100, in check_file_field
raise RuntimeError(multipart_not_installed_error) from None
RuntimeError: Form data requires "python-multipart" to be installed.
You can install "python-multipart" with:
pip install python-multipart