Studio macOS: force anyio<4.14.0 via uv override (#6575)

The macOS-arm studio venv still installs anyio 4.14.0 despite the
constraints.txt cap from #6546. mlx-vlm / mlx-lm pull anyio>=4.14, which
conflicts with the anyio<4.14.0 constraint; a uv -c constraint loses that
conflict so 4.14.0 gets installed, reintroducing the cancel-scope
RuntimeError on Python 3.13 (#6483). UV_OVERRIDE is already applied on
macOS-arm via overrides-darwin-arm64.txt and a uv override wins the
conflict, so cap anyio there too. macOS-arm now resolves anyio 4.13.0.
This commit is contained in:
Daniel Han 2026-06-22 08:45:13 -07:00 committed by GitHub
commit 65c8a88fe4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,3 +3,9 @@
# backtrack unsloth. Relax to match the pin -- per-model 5.x routing
# happens at runtime via the side-car venvs.
transformers>=4.57.6
# mlx-vlm / mlx-lm pull anyio>=4.14, which conflicts with the constraints.txt
# cap (anyio<4.14.0, #6483: 4.14+ breaks cancel scope on Python 3.13). A -c
# constraint loses that conflict on macOS-arm and 4.14.0 gets installed; an
# override wins it, so force anyio down here too.
anyio<4.14.0