Add explicit matplotlib dep for parakeet and sortformer#19231
Add explicit matplotlib dep for parakeet and sortformer#19231rascani wants to merge 2 commits intopytorch:mainfrom
Conversation
The Metal, MLX, and CUDA Windows export workflows started failing on 2026-04-30 with `ModuleNotFoundError: No module named 'matplotlib'` when the parakeet/sortformer export scripts import `nemo.collections.asr`. NeMo's clustering_diarizer module top-level imports matplotlib via vad_utils, but matplotlib is not declared by `nemo_toolkit[asr]`. A release in some transitive dep stopped pulling matplotlib in incidentally. nemo_toolkit itself was unchanged (2.7.3 since 2026-04-23), so adding matplotlib explicitly is the targeted fix. Authored with Claude Code.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19231
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Cancelled Job, 2 Unrelated FailuresAs of commit 63fc0fa with merge base f3e49ff ( NEW FAILURE - The following job has failed:
CANCELLED JOB - The following job was cancelled. Please retry:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Adding matplotlib as an explicit line in install_requirements.txt changed pip's resolver behavior: with matplotlib pinned first the resolver lands on nemo_toolkit-2.0.0 in the sortformer CUDA job, which predates SortformerEncLabelModel and produces `ImportError: cannot import name 'SortformerEncLabelModel' from 'nemo.collections.asr.models'`. The successful 12:51 UTC run on main resolved nemo_toolkit-2.7.3 transitively, with matplotlib coming along for the ride. Pin both directly so the install order can no longer perturb the resolution. Authored with Claude Code.
Summary
The Metal, MLX, and CUDA Windows export workflows started failing on 2026-04-30 with
ModuleNotFoundError: No module named 'matplotlib'when the parakeet/sortformer export scripts importnemo.collections.asr. NeMo's clustering_diarizer module top-level imports matplotlib via vad_utils, but matplotlib is not declared bynemo_toolkit[asr]. A release in some transitive dep stopped pulling matplotlib in incidentally. nemo_toolkit itself was unchanged (2.7.3 since 2026-04-23), so adding matplotlib explicitly is the targeted fix.Authored with Claude Code.
Test plan
CI
cc @metascroy