Skip to content

fix(kokoro): add explicit click dep so spacy CLI works on intel build#10572

Merged
mudler merged 1 commit into
masterfrom
fix/kokoro-intel-click-dep
Jun 28, 2026
Merged

fix(kokoro): add explicit click dep so spacy CLI works on intel build#10572
mudler merged 1 commit into
masterfrom
fix/kokoro-intel-click-dep

Conversation

@localai-bot

Copy link
Copy Markdown
Collaborator

Problem

In the v4.5.5 release CI, the backend image build job gpu-intel-kokoro (linux/amd64, Intel oneAPI) failed:

ModuleNotFoundError: No module named 'click'
make: *** [Makefile:3: kokoro] Error 1

Root cause

backend/python/kokoro/install.sh ends with:

python -m spacy download en_core_web_sm

python -m spacy loads spaCy's CLI, which imports typer -> click, so click must be installed 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 does not get resolved/installed, so the spacy CLI import fails. Other profiles (cpu/cublas) pull click in transitively and build fine; only the intel profile breaks.

Fix

Add click as an explicit dependency in the base backend/python/kokoro/requirements.txt, which installRequirements installs for every profile (base + per-profile). This guarantees click is present before python -m spacy download runs, regardless of index resolution. The version is left unpinned so spacy constrains it.

Found in the v4.5.5 release CI gpu-intel-kokoro build failure.

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 <mudler@localai.io>
@mudler mudler merged commit b7a1dec into master Jun 28, 2026
61 of 62 checks passed
@mudler mudler deleted the fix/kokoro-intel-click-dep branch June 28, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants