Skip to content

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

Merged
danielhanchen merged 1 commit into
mainfrom
fix-macos-anyio-override
Jun 22, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-macos-anyio-override

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

What

Force anyio<4.14.0 on the macOS-arm studio venv by adding it to the uv override file.

Why

#6546 pinned anyio<4.14.0 in constraints.txt to avoid the Python 3.13 cancel-scope RuntimeError (#6483). On macOS-arm the pin is not taking effect: the studio venv still installs anyio 4.14.0 and the server 500s on the first httpx-backed request (cannot import name 'TaskHandle' from anyio._core._tasks, surfaced via routes/inference.py::_openai_passthrough_non_streaming).

Root cause: mlx-vlm / mlx-lm pull anyio>=4.14, which conflicts with the <4.14.0 cap. A uv -c constraint loses a hard-requirement conflict (it errors or yields 4.14.0), while a uv override wins it. UV_OVERRIDE is already applied on macOS-arm via overrides-darwin-arm64.txt, but it did not list anyio.

Change

Add anyio<4.14.0 to single-env/overrides-darwin-arm64.txt. macOS-arm now resolves anyio 4.13.0; Linux/Windows are unaffected (they already honor the constraints.txt cap). This does not change intent - it makes the existing <4.14 pin actually stick on macOS-arm.

Validation

Verified with uv that an override forces anyio<4.14.0 even against an explicit anyio==4.14.0 request (resolves to 4.13.0), whereas the same as a -c constraint is a hard conflict.

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.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds an override constraint for anyio<4.14.0 in overrides-darwin-arm64.txt to resolve a dependency conflict on macOS ARM where mlx-vlm or mlx-lm pull in anyio>=4.14, which breaks cancel scopes on Python 3.13. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant