mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 06:20:20 -05:00
Saving any tool or function in the admin UI threw "ModuleNotFoundError: No module named 'click'" in the browser, even on a fresh tool with no custom code, because the click name never appears in user code at all. The in-browser formatter runs black through a Pyodide/micropip worker. black needs click, mypy_extensions, pathspec, platformdirs and pytokens at import time, but the vendored pyodide-lock.json records none of these as black's dependencies, and micropip only walks a locked package's declared deps when install() is given explicit constraints, which this worker never does. So only black itself ever got installed. Requesting the five packages explicitly alongside black fixes it without touching the worker or the lock file.