From 9e2c016b97ac2d180321cc8d3ca45cb69a5b3d83 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sun, 28 Jun 2026 09:26:39 +0000 Subject: [PATCH] fix(kokoro): add explicit click dep so spacy CLI works on intel build The kokoro install.sh ends with `python -m spacy download en_core_web_sm`. spaCy's CLI imports typer -> click, so click must be present at that point. On the intel build profile, install.sh adds `--upgrade --index-strategy=unsafe-first-match` against the Intel pip index. With that resolution strategy, click is not resolved/installed, so the spacy CLI import fails with: ModuleNotFoundError: No module named 'click' make: *** [Makefile:3: kokoro] Error 1 Other profiles (cpu/cublas) pull click in transitively and build fine; only the intel profile breaks. This surfaced in the v4.5.5 release CI as the gpu-intel-kokoro backend image build failure. Make click an explicit dependency in the base requirements.txt (installed for every profile) so it is always present before `python -m spacy download` runs, regardless of index resolution. Unpinned: spacy constrains the version. Assisted-by: Claude:claude-opus-4-8 [Claude Code] Signed-off-by: Ettore Di Giacinto --- backend/python/kokoro/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/python/kokoro/requirements.txt b/backend/python/kokoro/requirements.txt index 1a45c4bd4845..82df6182cd57 100644 --- a/backend/python/kokoro/requirements.txt +++ b/backend/python/kokoro/requirements.txt @@ -3,4 +3,5 @@ protobuf certifi packaging==24.1 pip -chardet \ No newline at end of file +chardet +click