From c84ff1918a48e1017d4689938630671c2da7538c Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 7 May 2026 10:23:20 +0000 Subject: [PATCH] fix(install): add pydantic_core + annotated-types to no-torch-runtime.txt Whack-a-mole on the --no-deps install: after typer's deps (click, shellingham, annotated-doc, rich, etc.) the next module hit is pydantic_core, which lives in a separate wheel from pydantic and so is NOT installed when `pydantic` itself is installed --no-deps. Pin pydantic-core and annotated-types (pydantic's other dep tree member) so the import chain works on a fresh windows-latest venv. --- studio/backend/requirements/no-torch-runtime.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/studio/backend/requirements/no-torch-runtime.txt b/studio/backend/requirements/no-torch-runtime.txt index 3adbef9cb3..79a69f67d2 100644 --- a/studio/backend/requirements/no-torch-runtime.txt +++ b/studio/backend/requirements/no-torch-runtime.txt @@ -23,6 +23,12 @@ markdown-it-py>=3.0 mdurl>=0.1 pygments>=2.0 pydantic +# pydantic 2.x's compiled core lives in a SEPARATE wheel and is NOT +# bundled with the pydantic wheel itself. With --no-deps, `import +# pydantic` blows up with `ModuleNotFoundError: No module named +# 'pydantic_core'` on a fresh venv. +pydantic-core +annotated-types>=0.6 pyyaml nest-asyncio