From 65c8a88fe4342f47e166b8334ae0ed351a8037a3 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Mon, 22 Jun 2026 08:45:13 -0700 Subject: [PATCH] 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. --- .../requirements/single-env/overrides-darwin-arm64.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/studio/backend/requirements/single-env/overrides-darwin-arm64.txt b/studio/backend/requirements/single-env/overrides-darwin-arm64.txt index 2cd03d8b78..8558cd5b6c 100644 --- a/studio/backend/requirements/single-env/overrides-darwin-arm64.txt +++ b/studio/backend/requirements/single-env/overrides-darwin-arm64.txt @@ -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