Skip to content

Add explicit matplotlib dep for parakeet and sortformer#19231

Open
rascani wants to merge 2 commits intopytorch:mainfrom
rascani:fix-parakeet-matplotlib-dep
Open

Add explicit matplotlib dep for parakeet and sortformer#19231
rascani wants to merge 2 commits intopytorch:mainfrom
rascani:fix-parakeet-matplotlib-dep

Conversation

@rascani
Copy link
Copy Markdown
Contributor

@rascani rascani commented Apr 30, 2026

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 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.

Test plan

CI

cc @metascroy

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.
@rascani rascani requested a review from lucylq as a code owner April 30, 2026 17:49
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Apr 30, 2026

🔗 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, 1 Pending, 2 Unrelated Failures

As of commit 63fc0fa with merge base f3e49ff (image):

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.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 30, 2026
@github-actions
Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@Gasoonjia Gasoonjia added ciflow/metal ciflow/cuda module: mlx Issues related to MLX Backend: Metal-accelerated inference on Apple Silicon labels Apr 30, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/cuda ciflow/metal CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: mlx Issues related to MLX Backend: Metal-accelerated inference on Apple Silicon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants