``` 2025-11-24T13:13:32.336Z Total Upload: 644.44 KiB / gzip: 119.86 KiB 2025-11-24T13:13:35.627Z 2025-11-24T13:13:35.628Z ✘ [ERROR] A request to the Cloudflare API (/accounts/9c8c17cfa5b8c29c830e072acce42a3d/workers/scripts/vinci-backend/versions) failed. 2025-11-24T13:13:35.628Z 2025-11-24T13:13:35.628Z Uncaught Error: PythonError: Traceback (most recent call last): 2025-11-24T13:13:35.628Z File "/lib/python313.zip/_pyodide/_base.py", line 523, in eval_code 2025-11-24T13:13:35.628Z .run(globals, locals) 2025-11-24T13:13:35.628Z ~~~^^^^^^^^^^^^^^^^^ 2025-11-24T13:13:35.628Z File "/lib/python313.zip/_pyodide/_base.py", line 357, in run 2025-11-24T13:13:35.628Z coroutine = eval(self.code, globals, locals) 2025-11-24T13:13:35.629Z File "", line 9, in 2025-11-24T13:13:35.629Z File "/lib/python313.zip/_pyodide/_base.py", line 666, in pyimport_impl 2025-11-24T13:13:35.629Z res = __import__(stem, fromlist=fromlist) 2025-11-24T13:13:35.629Z File "/session/metadata/worker.py", line 5, in 2025-11-24T13:13:35.629Z from server import app # Replace with your app import 2025-11-24T13:13:35.629Z ^^^^^^^^^^^^^^^^^^^^^^ 2025-11-24T13:13:35.630Z File "/session/metadata/server.py", line 2, in 2025-11-24T13:13:35.630Z import uvicorn 2025-11-24T13:13:35.630Z ModuleNotFoundError: No module named 'uvicorn' 2025-11-24T13:13:35.630Z 2025-11-24T13:13:35.630Z at null. (pyodide-internal:generated/emscriptenSetup:19872:14) in new_error 2025-11-24T13:13:35.630Z at [object Object] in $wrap_exception 2025-11-24T13:13:35.630Z at [object Object] in $pythonexc2js 2025-11-24T13:13:35.630Z at null. (pyodide-internal:generated/emscriptenSetup:22364:37) in callPyObjectKwargs 2025-11-24T13:13:35.630Z at null. (pyodide-internal:generated/emscriptenSetup:23262:20) in callKwargs 2025-11-24T13:13:35.631Z at null. (pyodide-internal:generated/emscriptenSetup:24422:87) in runPython 2025-11-24T13:13:35.631Z at null. (pyodide:python-entrypoint-helper:62:17) in handleSrcImport 2025-11-24T13:13:35.631Z at null. (pyodide:python-entrypoint-helper:171:17) 2025-11-24T13:13:35.631Z [code: 10021] 2025-11-24T13:13:35.631Z To learn more about this error, visit: https://developers.cloudflare.com/workers/observability/errors/#validation-errors-10021 2025-11-24T13:13:35.631Z 2025-11-24T13:13:35.631Z 2025-11-24T13:13:35.631Z If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose 2025-11-24T13:13:35.631Z 2025-11-24T13:13:35.631Z 2025-11-24T13:13:35.631Z 2025-11-24T13:13:35.631Z Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md 2025-11-24T13:13:35.645Z 🪵 Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-11-24_13-13-28_281.log" 2025-11-24T13:13:36.696Z Failed: error occurred while running deploy command ``` wrangler.toml: ``` name = "backend" main = "worker.py" compatibility_flags = ["python_workers"] compatibility_date = "2025-11-02" ``` worker.py: ``` from workers import WorkerEntrypoint from server import app class Default(WorkerEntrypoint): async def fetch(self, request): import asgi return await asgi.fetch(app, request.js_object, self.env) ```