From b7a1dec773a95679f0715acbdf572fe6b29193a1 Mon Sep 17 00:00:00 2001 From: "LocalAI [bot]" <139863280+localai-bot@users.noreply.github.com> Date: Sun, 28 Jun 2026 11:29:17 +0200 Subject: [PATCH] fix(kokoro): add explicit click dep so spacy CLI works on intel build (#10572) 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 Co-authored-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 1a45c4bd4..82df6182c 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