#3916·omlx

Homebrew formula reinstalls a stale mlx-audio (0.4.3) over the pyproject pin (0.4.8): `pip check` fails with "mlx-vlm 0.7.1 has requirement mlx-audio>=0.4.8"

Author: scot-xCreated Sep 25, 2026Updated Oct 1, 2026

Environment

  • oMLX 0.7.0rc1 via brew upgrade jundot/omlx/omlx (tap at 3f2d07e8, "formula: bump to 0.7.0rc1"). The formula is unchanged at HEAD as of 2026-09-25.
  • Homebrew 7.0.4, macOS 27.0, Apple M4 Max, [email protected] 3.11.16. Default build, no options.

Steps to reproduce

  1. brew upgrade jundot/omlx/omlx (or a fresh brew install) to 0.7.0rc1.
  2. /opt/homebrew/Cellar/omlx/0.7.0rc1/libexec/bin/python -m pip check
  3. /opt/homebrew/Cellar/omlx/0.7.0rc1/libexec/bin/python -m pip list | grep -E '^mlx-(audio|vlm) '

Expected behavior

No broken requirements found., with mlx-audio 0.4.8. pyproject.toml at v0.7.0rc1 pins mlx-audio @ git+https://github.com/Blaizzy/mlx-audio@49596ac8b69b9ed377db311a73df838795f38a3d (v0.4.8).

Actual behavior

mlx-vlm 0.7.1 has requirement mlx-audio>=0.4.8, but you have mlx-audio 0.4.3.
mlx-audio                 0.4.3
mlx-vlm                   0.7.1

Module imports still succeed (import omlx, mlx_vlm, mlx_audio), so the mismatch is silent unless you run pip check.

Cause

Formula/omlx.rb first installs oMLX, which resolves mlx-audio@49596ac (0.4.8) from pyproject.toml. It then installs its own resource over it:

ruby
resource "mlx-audio" do
  url "https://github.com/Blaizzy/mlx-audio.git",
    revision: "51753266e0a4f766fd5e6fbc46652224efc23981"   # 0.4.3
end
...
resource("mlx-audio").stage do
  inreplace "pyproject.toml", '"mlx-lm==0.31.1"', '"mlx-lm>=0.31.1"'
  system(*pip_install, ".[all]")
end

The resource revision was not bumped when pyproject.toml moved to 49596ac, so the final venv ends up with 0.4.3.

⚠ Bumping only the revision will break the build. mlx-audio@49596ac already declares mlx-lm>=0.31.1, so the inreplace pattern "mlx-lm==0.31.1" no longer matches, and Homebrew's inreplace fails when nothing is replaced.

Workaround

Install the pinned build into the keg's venv without touching other dependencies:

bash
/opt/homebrew/Cellar/omlx/0.7.0rc1/libexec/bin/pip install --no-deps \
  "mlx-audio @ git+https://github.com/Blaizzy/mlx-audio@49596ac8b69b9ed377db311a73df838795f38a3d"

After this, pip check reports no broken requirements. A Kokoro-82M-bf16 TTS → whisper STT round trip, Qwen3.6-35B-A3B chat with MTP, and streamed tool calls all work on 0.7.0rc1. We applied the workaround before starting the server, so we did not observe a runtime failure from 0.4.3 itself. The failure described here is the violated declared requirement. Every brew build of this formula (reinstall, rc2, final) re-applies 0.4.3 until the formula changes.

Suggested fix

Either of these:

  1. Bump resource "mlx-audio" to 49596ac8b69b9ed377db311a73df838795f38a3d and remove the now-unmatched inreplace. It is no longer needed, because 49596ac already uses mlx-lm>=0.31.1.
  2. Drop the resource entirely, since pyproject.toml at v0.7.0rc1 already installs mlx-audio@49596ac and lists the audio runtime dependencies explicitly (espeakng-loader, librosa, misaki, num2words, numba, phonemizer-fork, pyloudnorm, spacy).

A pip check in the formula's test do block would catch this kind of drift between the resource and pyproject.toml in the future.

!! This was written with the help Claude AI