Skip to content

uv sync --extra policyengine resolves torch wheel unavailable on macOS x86_64 #145

@anth-volk

Description

@anth-volk

While attempting a fresh workstation smoke setup from main, uv sync --extra policyengine failed before the run module could be imported.

Environment:

  • Repo: PolicyEngine/microplex-us, main, up to date with origin/main
  • macOS x86_64: Darwin MacBookPro 24.6.0 ... RELEASE_X86_64 x86_64
  • uv: 0.11.14 (3fdfdc7d4 2026-05-12 x86_64-apple-darwin)
  • .python-version: 3.14

Command:

uv sync --extra policyengine

Failure:

Using CPython 3.14.3 interpreter at: /usr/local/bin/python3.14
Creating virtual environment at: .venv
Resolved 191 packages in 151ms
error: Distribution `torch==2.11.0 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on macOS (`macosx_15_0_x86_64`), but `torch` (v2.11.0) only has wheels for the following platforms: `manylinux_2_28_aarch64`, `manylinux_2_28_x86_64`, `macosx_11_0_arm64`, `win_amd64`; consider adding "sys_platform == 'darwin' and platform_machine == 'x86_64'" to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels

The canonical PE-US rebuild smoke path does not use neural synthesis directly, but core microplex[calibrate] currently pulls in torch>=2.0, so the install is blocked on Intel macOS before the pipeline can run.

Next attempted workaround locally: try a Python 3.13 environment/resolution path and continue the smoke if dependencies can be made installable without changing repo code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions