Skip to content

Require MuJoCo 3.11 and mjlab 1.6 - #928

Open
M-Colley wants to merge 8 commits into
MyoHub:devfrom
M-Colley:fix/require-mujoco-3.11
Open

M-Colley wants to merge 8 commits into
MyoHub:devfrom
M-Colley:fix/require-mujoco-3.11

Conversation

@M-Colley

@M-Colley M-Colley commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Category: dependency floor update (pyproject.toml + uv.lock; Milestone 3.2; requires maintainer approval).

Summary

Raises MyoSuite's MuJoCo floor to >=3.11,<4 on all platforms with 3.11+ wheels and mjlab>=1.6.0 (mujoco-warp>=3.11.0,<4), while keeping Intel macOS (x86_64) on mujoco>=3.10,<3.11 via environment markers (1b147a32, per 3.2 release planning with @fl0fischer; CPU MuJoCo 4.0 support is split into #972).

  • Problem (google-deepmind/mujoco#3406): Before MuJoCo 3.11, MjSpec.copy() and attach(copy_during_attach=True) leave each copied tendon wrap without its model. Reading MjsWrap.target or MjsWrap.sidesite on the copy dereferences a null pointer and crashes the interpreter (fixed in MuJoCo 3.11.0). ModelBuilder.build_spec() and cached_spec always return copies, so every recipe spec is already a copy when its edit_fn runs (blocking delete_joint in Let the arm-reach edit build with hands that have tendon-tied nodes #748 and MyoHub/myo_sim#209 / Take dependency-safe joint and tendon deletion from myo_sim #927 on MuJoCo 3.8.1).
  • Changes:
    • pyproject.toml (core): mujoco>=3.11,<4; sys_platform != 'darwin' or platform_machine != 'x86_64', mujoco>=3.10,<3.11; sys_platform == 'darwin' and platform_machine == 'x86_64' (Intel Macs stay on 3.10.0 prebuilt wheels and retain the copied-wrap limitation), and mink>=1.3.0 on every Python >=3.10.
    • pyproject.toml ([mjlab] & [mjx]): mjlab>=1.6.0, mujoco-warp>=3.11.0,<4, mujoco>=3.11, and mujoco-mjx>=3.11,<4 on non-Intel-Mac platforms (torch>=2.13 and warp-lang>=1.11 already published no Intel macOS wheels).
    • uv.lock (uv 0.13.8): mjlab 1.4.0 -> 1.6.1; mujoco/mujoco-mjx/mujoco-warp 3.8.1 -> 3.11.0 (plus mujoco 3.10.0 marker branch for Intel Macs; Python >=3.14 stays on 3.14.0); rsl-rl-lib 5.2.0 -> 5.4.2; mink 1.1.0 -> 1.3.0; qpsolvers 4.11.0 -> 4.13.0; mediapy 1.2.7; warp-lang 1.19.0.
    • Stale compatibility guards removed: backends/mjlab/tasks/mdp/commands.py (env_ids=None default for mjlab < 1.6), backends/mjlab/mjlab_env_base.py (normalize_mjlab_env_ids fallback narrowed to missing mjlab), tests/support/optional_deps.py (require_mujoco_warp default 3.11.0), test_mjviser_constraint.py (supports marker-split core mujoco pins), integrations/musclemimic/fullbody_eval_cli.py, utils/asset_path_resolver.py, tutorials/3.3_Inverse_Dynamics.ipynb (MuJoCo < 3.2.6 branch removed), CHANGELOG.md, README.md, and docs/source/install.rst.

Ownership & Reuse (REVIEW.md)

  • Owner: MyoSuite (pyproject.toml, uv.lock, version-compatibility guards, and install documentation; coordinates with MyoHub/myo_sim#209 and build(deps): allow MuJoCo 4.0.x on the CPU backend #972).
  • Existing primitives reused: resolve_env_ids delegation in normalize_mjlab_env_ids (mjlab_env_base.py), require_mujoco_warp (tests/support/optional_deps.py), and test_mjviser_constraint.py.
  • Code removed/simplified: Removed obsolete mjlab < 1.6 and MuJoCo < 3.2.6 compatibility branches (310 lines removed/updated across lock and source).

Compatibility & Platform Support

  • No MDP or checkpoint contract changes: Observation, action, reward, reset, and parity baseline contracts are unchanged (CI unlocked installs already resolved MuJoCo 3.11+). Local checkouts on older locks need uv sync.
  • Python 3.10–3.15: Preserved (requires-python >= 3.10; CI covers 3.11, 3.13, 3.15 on Ubuntu plus 3.10 on full/release runs).
  • Intel macOS (x86_64): Preserved on Python <=3.13 via mujoco>=3.10,<3.11 (onnxruntime has no Intel macOS wheels for Python 3.14; [mjlab] and [mjx] are skipped via markers).
  • Checked downstream packages: training/supermimic already requires mjlab>=1.6 and mujoco-warp>=3.11; chasetag_teacher, dynsyn, and the newton probe (newton[sim] on MuJoCo 3.17) remain compatible; the mujoco-warp < 3.16 sidesite warning in model_recipes.py still applies (mjlab 1.6 pins mujoco-warp 3.11).

Verification & Reproduction

Minimal reproduction (dev prior lock vs #928, Windows 11, Python 3.11.18, myo-sim==0.2.5):

python -c "from myosuite.core.model_builder import build_from_recipe as b; _, s = b('full_arm'); print(s.tendons[0].name, '->', s.tendons[0].path[0].target.name)"
  • Old lock (MuJoCo 3.8.1): Windows fatal exception: access violation (exit 139).
  • New lock (MuJoCo 3.11.0): prints s_glenohum_ligament -> s_glenohum_s_glenohum-P1_r.

Test matrix (Windows 11 local + Ubuntu CI):

Install Python MuJoCo / mujoco-warp / mjlab / mujoco-mjx / jax Tests Result
Locked: uv sync --locked, extras dev, mjlab, onnx, mjx 3.10.22 3.11.0 / 3.11.0 / 1.6.1 / 3.11.0 / 0.5.2 default suite 3875 passed, 65 skipped, 9 xfailed, 1 xpassed (+4 Windows brax-absent MJX skips)
Declared floor (mjlab 1.6.0) 3.10.22 3.11.0 / 3.11.0 / 1.6.0 / 3.11.0 / 0.5.2 mjlab group; verification block 857 passed, 13 skipped; 349 passed, 3 skipped
Locked + Linux MJX pins (brax 0.14.1, flax 0.10.6, orbax-checkpoint 0.11.23) 3.10.22 3.11.0 / 3.11.0 / 1.6.1 / 3.11.0 / 0.5.2 test_mjx.py, test_mjx_setup_helpers.py, tests/mjx/, test_modular_env.py 170 passed
Fresh: uv pip install -e .[dev,mjlab,onnx,mjx] 3.10.22 3.11.0 / 3.11.0 / 1.6.1 / 3.11.0 / 0.6.2 verification block, test_mjx.py 353 passed, 3 skipped
Locked 3.11.18 3.11.0 / 3.11.0 / 1.6.1 / – / – verification block + 16 changed-code modules 526 passed, 7 skipped, 1 xfailed
GitHub CI (60c8b641, with Intel Mac markers) 3.11, Ubuntu 3.11.0 / 3.11.0 / 1.6.1 / – / – cpu, mjlab, tutorials, docs, pre-commit All green

Not run:

  • Physical Intel macOS runtime (uv lock wheel resolution verified via platform markers).
  • Re-evaluating docs/baseline_checkpoints.md mjlab win/solve rates (CI unlocked runs already used 3.11.0).

Copy link
Copy Markdown
Collaborator

Please include a more comprehensive Python-version/support audit before landing. Reviewed head b97d1a8c81d4: this PR raises MuJoCo to 3.11, but explicitly retains Python 3.10. Those are separate version decisions; the MuJoCo fix alone does not establish that Python 3.10 must be dropped.

If the intention is to retire Python 3.10, these active locations also need coordinated changes:

  • pyproject.toml:7,18: requires-python >=3.10 and the Python 3.10 classifier; review the extra markers, Python<3.11 dependency branches and UV constraints, then regenerate uv.lock rather than editing it manually.
  • .github/workflows/python-app.yml:60–70: Python 3.10 full-matrix job and support-policy comments.
  • .pre-commit-config.yaml:27: pyupgrade --py310-plus.
  • AGENTS.md:95,116, docs/wiki/engineering-standards.md:31, docs/wiki/getting-started.md:140: minimum version and CI descriptions (follow the developer-guide path migration if Move docs/wiki into the Sphinx docs as the developer guide #844 lands first).
  • README.md:50 and docs/source/install.rst:4–31: explicit Python 3.10 support claims and compatibility/dependency notes.
  • myosuite/tests/test_package_discovery.py:49–66: tests explicitly require Python 3.10 support, its classifier and its CI entry. Also review its tomllib/tomli fallback and test_optional_onnxruntime.py:27; retaining Python 3.10 as a negative compatibility test can be useful, so do not mechanically delete every occurrence.
  • training/{chasetag_teacher,dynsyn,supermimic}/pyproject.toml: independently declare Python >=3.10; align packages that require the new MyoSuite release, or document intentional compatibility with older releases.
  • CHANGELOG, lockfile support range and any remaining installation/bootstrap/version-check paths. Notebook source-cell scan found no additional Python 3.10 setup instructions at this head. Preserve historical reports, third-party version numbers and numerical data.

Please make the decision explicit: either retain Python 3.10 and verify both fresh installs and locked installs on the declared minimum (including supported extras), or propose the >=3.11 migration and update all active contracts together. The existing comments about older Pillow/filelock security constraints are also a reason to review the retained dependency branches, not to assume support can be removed implicitly.

For #928 itself, please validate the exact minimum MuJoCo 3.11/mjlab 1.6 combination, as well as current versions; latest-only CI does not prove declared-floor support. Static/source audit only here; I have not rerun the crash reproduction or the dependency matrix.

@Vittorio-Caggiano Vittorio-Caggiano left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

make the PR coverage complete as the changes required affect other parts of the repo

M-Colley added a commit to M-Colley/myosuite that referenced this pull request Nov 24, 2026
@M-Colley
M-Colley force-pushed the fix/require-mujoco-3.11 branch from 2550e49 to 886cf23 Compare November 24, 2026 20:34
@M-Colley

M-Colley commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Rebased onto current dev (886cf23, picking up #933's Python 3.11/3.13/3.15 CI matrix while keeping requires-python >= 3.10) and verified test_package_discovery.py + pre-commit.

@Vittorio-Caggiano Vittorio-Caggiano left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@M-Colley do we have core features that depend on mujoco 3.11 or mjlab 1.6?

@M-Colley

Copy link
Copy Markdown
Collaborator Author

@Vittorio-Caggiano Here is how current dev and the incoming PRs depend on each package floor:

  1. mujoco>=3.11: Merged dev on myo-sim==0.2.5 executes without hitting the crash as long as MjSpec edit callbacks leave tendon wrap targets unread on copied specs. However, ModelBuilder.build_spec() and cached_spec() always return copies via MjSpec.copy() and attach(copy_during_attach=True). In MuJoCo 3.7 through 3.10, MjSpec.copy() leaves copied MjsWrap structs with a null model pointer (google-deepmind/mujoco#3406, fixed in MuJoCo 3.11.0), so reading MjsWrap.target or MjsWrap.sidesite inside any recipe edit_fn segfaults the Python interpreter. Consequently, dependency-safe joint and tendon deletion for the myo_sim v0.3.0 hand (delete_joint and delete_tendon in Let the arm-reach edit build with hands that have tendon-tied nodes #748, MyoHub/myo_sim#209, Take dependency-safe joint and tendon deletion from myo_sim #927, and fix(compat): support myo_sim v0.3.0 hand welding, pose targets, relocate, and girdle IK #943) requires MuJoCo 3.11.0 or newer. In addition, unpinned CI (uv pip install -e ".[...]") already resolves MuJoCo 3.11+ for parity baselines while uv.lock remained on MuJoCo 3.8.1.

  2. mjlab>=1.6.0: Core myosuite.envs.myo.backends.mjlab tasks run on both mjlab 1.4 and mjlab 1.6 at the Python API level via small compatibility guards in mjlab_env_base.py and commands.py. Raising mujoco>=3.11 pulls in mjlab>=1.6.0 through version constraints because mjlab 1.4 pins mujoco==3.8.* and mjlab 1.5 pins mujoco==3.10.*. mjlab 1.6.0 is the earliest release compatible with mujoco>=3.11 and mujoco-warp>=3.11 (training/supermimic already requires mjlab>=1.6 and mujoco-warp>=3.11). Raising the MuJoCo floor also lets mink>=1.3.0 apply uniformly across Python 3.10 through 3.15.

If we want #748, #927, and #943 to land cleanly and align uv.lock with CI, mujoco>=3.11,<4 and mjlab>=1.6.0 are the minimum compatible floors, with the trade-off of dropping prebuilt Intel macOS wheels. Alternatively, if preserving Intel macOS wheel installs on dev takes priority until myo_sim v0.3.0 is ready to land, we can hold #928 for that transition.

Before MuJoCo 3.11, MjSpec.copy() left copied tendon wraps without their
model, so reading MjsWrap.target or .sidesite on the copy crashed the
interpreter (google-deepmind/mujoco#3406, fixed in 3.11.0). Every recipe
spec is a copy by the time its edit_fn runs, so delete_joint in MyoHub#748 and
myo_sim's spec_edit (MyoHub/myo_sim#209) crash with the locked 3.8.1.

Set mujoco>=3.11,<4 in the core dependencies and the mjx extra,
mujoco-mjx>=3.11, and mjlab>=1.6.0 with mujoco-warp>=3.11.0 in the mjlab
extra (mjlab 1.4 and 1.5 pin MuJoCo 3.8 and 3.10). uv lock moves mjlab
1.4.0 -> 1.6.1 and mujoco, mujoco-mjx and mujoco-warp 3.8.1 -> 3.11.0,
the versions CI already installs.
Python 3.10 stays supported: MuJoCo 3.11, mujoco-warp 3.11, mujoco-mjx 3.11
and mjlab 1.6 all ship for it. MuJoCo 3.11 drops the Intel macOS wheels, so
the changelog, README and install docs now say Intel Macs are unsupported.

Remove what the floors made stale: the mjlab < 1.6 default on
_update_command, the mjlab < 1.4 wording on the env-id fallback, the
MuJoCo < 3.2.6 branch in tutorial 3.3, the 3.7.0 mujoco-warp minimum in the
test helper and the 'mujoco>=3.3' MJX hint. mink 1.3's MuJoCo 3.10 floor no
longer conflicts with mjlab, so mink>=1.3.0 applies on every Python; below
Python 3.14 the lock moves mink 1.1.0 to 1.3.0 and qpsolvers 4.11.0 to 4.13.0.
@M-Colley
M-Colley force-pushed the fix/require-mujoco-3.11 branch from 886cf23 to 0bf0ce1 Compare November 26, 2026 15:29
@Vittorio-Caggiano

Copy link
Copy Markdown
Collaborator

@Vittorio-Caggiano Here is how current dev and the incoming PRs depend on each package floor:

  1. mujoco>=3.11: Merged dev on myo-sim==0.2.5 executes without hitting the crash as long as MjSpec edit callbacks leave tendon wrap targets unread on copied specs. However, ModelBuilder.build_spec() and cached_spec() always return copies via MjSpec.copy() and attach(copy_during_attach=True). In MuJoCo 3.7 through 3.10, MjSpec.copy() leaves copied MjsWrap structs with a null model pointer (google-deepmind/mujoco#3406, fixed in MuJoCo 3.11.0), so reading MjsWrap.target or MjsWrap.sidesite inside any recipe edit_fn segfaults the Python interpreter. Consequently, dependency-safe joint and tendon deletion for the myo_sim v0.3.0 hand (delete_joint and delete_tendon in Let the arm-reach edit build with hands that have tendon-tied nodes #748, MyoHub/myo_sim#209, Take dependency-safe joint and tendon deletion from myo_sim #927, and fix(compat): support myo_sim v0.3.0 hand welding, pose targets, relocate, and girdle IK #943) requires MuJoCo 3.11.0 or newer. In addition, unpinned CI (uv pip install -e ".[...]") already resolves MuJoCo 3.11+ for parity baselines while uv.lock remained on MuJoCo 3.8.1.
  2. mjlab>=1.6.0: Core myosuite.envs.myo.backends.mjlab tasks run on both mjlab 1.4 and mjlab 1.6 at the Python API level via small compatibility guards in mjlab_env_base.py and commands.py. Raising mujoco>=3.11 pulls in mjlab>=1.6.0 through version constraints because mjlab 1.4 pins mujoco==3.8.* and mjlab 1.5 pins mujoco==3.10.*. mjlab 1.6.0 is the earliest release compatible with mujoco>=3.11 and mujoco-warp>=3.11 (training/supermimic already requires mjlab>=1.6 and mujoco-warp>=3.11). Raising the MuJoCo floor also lets mink>=1.3.0 apply uniformly across Python 3.10 through 3.15.

If we want #748, #927, and #943 to land cleanly and align uv.lock with CI, mujoco>=3.11,<4 and mjlab>=1.6.0 are the minimum compatible floors, with the trade-off of dropping prebuilt Intel macOS wheels. Alternatively, if preserving Intel macOS wheel installs on dev takes priority until myo_sim v0.3.0 is ready to land, we can hold #928 for that transition.

@fl0fischer should we have this in 3.2 or hold until 3.3?

@M-Colley

Copy link
Copy Markdown
Collaborator Author

Point 2 of my comment above is wrong for three merged mjlab twins. They fail on mjlab 1.4.0, which dev declares (mjlab>=1.4.0) and locks. The guards in mdp/commands.py and mjlab_env_base.py miss MotionCommand._update_command(self, env_ids) in mimic_tracking/commands.py, which has no default. mjlab 1.4 calls it without env_ids.

In the locked environment (uv sync --locked --extra dev --extra mjlab, giving mjlab 1.4.0 and MuJoCo 3.8.1), CI's mjlab group (-m "not slow and mjlab") gave 848 passed and 11 failed on 703e253. The same 11 tests fail on the current dev (4a25261), and all 11 pass on mjlab 1.6.1 with MuJoCo 3.11.0. CI misses the break because its unpinned install resolves mjlab 1.6.1. The failures:

  • myoMimic-v0 (myoMimic-v0: multi-clip full-body motion tracking as a task #573): 9 tests raise TypeError: MotionCommand._update_command() missing 1 required positional argument: 'env_ids'.
  • TableTennis with rally_count=2: after a solved rally, the ball is not back at its launch position.
  • myoSarcLegWalk-v0 one-step CPU/GPU parity: 2 of 403 observation entries exceed the 0.01 tolerance (maximum difference 0.0114).

A default pip install myosuite already fails on Intel Macs. With mujoco<4, uv pip compile --python-platform x86_64-apple-darwin resolves MuJoCo 3.17.0, which ships no Intel wheel. The installer then builds the sdist, and MuJoCo's setup.py stops with MUJOCO_PATH environment variable is not set. With --no-build, the same resolution selects 3.10.0. dev therefore installs on Intel Macs through a wheel-only flag (--only-binary mujoco), a mujoco<3.11 pin, or the lock on Python < 3.14. #928 removes these three routes.

For the 3.2/3.3 question: if #928 waits for 3.3, 3.2 still needs mjlab>=1.6 in the mjlab extra. Without it, 3.2 declares mjlab 1.4, on which these three twins fail.

Resolve the CHANGELOG.md link-reference conflict by keeping both
[MyoHub#923] from dev and [MyoHub#928], in ascending order.
@fl0fischer fl0fischer added this to the 3.2 milestone Nov 30, 2026
@fl0fischer

Copy link
Copy Markdown
Collaborator

@Vittorio-Caggiano Here is how current dev and the incoming PRs depend on each package floor:

  1. mujoco>=3.11: Merged dev on myo-sim==0.2.5 executes without hitting the crash as long as MjSpec edit callbacks leave tendon wrap targets unread on copied specs. However, ModelBuilder.build_spec() and cached_spec() always return copies via MjSpec.copy() and attach(copy_during_attach=True). In MuJoCo 3.7 through 3.10, MjSpec.copy() leaves copied MjsWrap structs with a null model pointer (google-deepmind/mujoco#3406, fixed in MuJoCo 3.11.0), so reading MjsWrap.target or MjsWrap.sidesite inside any recipe edit_fn segfaults the Python interpreter. Consequently, dependency-safe joint and tendon deletion for the myo_sim v0.3.0 hand (delete_joint and delete_tendon in Let the arm-reach edit build with hands that have tendon-tied nodes #748, MyoHub/myo_sim#209, Take dependency-safe joint and tendon deletion from myo_sim #927, and fix(compat): support myo_sim v0.3.0 hand welding, pose targets, relocate, and girdle IK #943) requires MuJoCo 3.11.0 or newer. In addition, unpinned CI (uv pip install -e ".[...]") already resolves MuJoCo 3.11+ for parity baselines while uv.lock remained on MuJoCo 3.8.1.
  2. mjlab>=1.6.0: Core myosuite.envs.myo.backends.mjlab tasks run on both mjlab 1.4 and mjlab 1.6 at the Python API level via small compatibility guards in mjlab_env_base.py and commands.py. Raising mujoco>=3.11 pulls in mjlab>=1.6.0 through version constraints because mjlab 1.4 pins mujoco==3.8.* and mjlab 1.5 pins mujoco==3.10.*. mjlab 1.6.0 is the earliest release compatible with mujoco>=3.11 and mujoco-warp>=3.11 (training/supermimic already requires mjlab>=1.6 and mujoco-warp>=3.11). Raising the MuJoCo floor also lets mink>=1.3.0 apply uniformly across Python 3.10 through 3.15.

If we want #748, #927, and #943 to land cleanly and align uv.lock with CI, mujoco>=3.11,<4 and mjlab>=1.6.0 are the minimum compatible floors, with the trade-off of dropping prebuilt Intel macOS wheels. Alternatively, if preserving Intel macOS wheel installs on dev takes priority until myo_sim v0.3.0 is ready to land, we can hold #928 for that transition.

@fl0fischer should we have this in 3.2 or hold until 3.3?

Not sure if this is relevant for the new myo_sim models anymore. But just because supermimic already requires mjlab>=1.6/mujoco_warp>=3.11, and maintaining all these mjlab and mujoco versions becomes increasingly hard, the v3.2.0 release could be a good opportunity to raise the floor.

Resolve the mjlab_env_base.py conflict with dev's version. dev now
imports resolve_env_ids lazily inside normalize_mjlab_env_ids, and its
docstring drops the "mjlab < 1.4 fallback" wording that this branch
had reworded, so the branch no longer changes that file.
@fl0fischer

Copy link
Copy Markdown
Collaborator

Two requirements for 3.2.0 from the release planning: we'd like to keep Intel Macs, and MyoSuite 3.2 must allow MuJoCo 4.0.x. Here is what that means for the pins (checked on PyPI today):

Intel Macs. The last MuJoCo with macosx_*_x86_64 wheels is 3.10.x; 3.11+ and 4.0.x ship arm64 only. Could #928 keep Intel Macs on 3.10 with a platform marker instead of dropping them?

"mujoco>=3.11,<4; sys_platform != 'darwin' or platform_machine != 'x86_64'",
# Intel Macs: no wheels for 3.11+; mink>=1.3 needs mujoco>=3.10
"mujoco>=3.10,<3.11; sys_platform == 'darwin' and platform_machine == 'x86_64'",

Intel Macs then don't get the 3.11 fix for the copied-spec crash (google-deepmind/mujoco#3406). As you described above, dev doesn't hit it today, so I think that's acceptable; a short note in the comment would be good. The [mjlab]/[mjx] extras don't install on macOS anyway.

MuJoCo 4.0.x. I'd keep #928 as the pin change and lift the <4 cap in a separate PR that I'm preparing, because it needs more than the pin:

  • myo-sim==0.2.5 itself requires mujoco>=3.4,<4, so 4.0 only becomes installable once a myo_sim release allows it;
  • mjlab 1.6.x pins mujoco~=3.11, so the [mjlab] extra stays on 3.11 until mjlab releases 4.0 support;
  • MuJoCo 4.0 needs Python >= 3.11 and changes some muscle paths of the current models (new side-site rule), so we need a parity check and notes on 4.0.

I'll link that PR here once it's open. Does that split work for you?

MuJoCo 3.11+ ships no x86_64 macOS wheels. Split the core pin so that
Intel Macs resolve mujoco>=3.10,<3.11 (3.10.0 has cp310-cp314 Intel
wheels; mink 1.3 needs 3.10) and keep the copied-spec crash there.
Every other platform keeps mujoco>=3.11,<4.

Exclude Intel Macs from mjlab, mujoco-warp, and the mjx extra's mujoco
and mujoco-mjx pins. Without these markers uv lock fails, because
mjlab 1.6 and mujoco-mjx 3.11 need MuJoCo 3.11. The extras did not
install on Intel Macs before either: torch>=2.13 and warp-lang>=1.11
publish no Intel macOS wheels.

test_mjviser_constraint read only unmarked requirements and raised
KeyError on the split pin; it now checks every core mujoco pin.

uv lock (uv 0.13.8) adds mujoco 3.10.0 for Intel Macs. It also adds
myst-parser and mdit-py-plugins and moves markdown-it-py, because the
lock from dev predates the myst-parser docs dependency of MyoHub#955.

Requested by fl0fischer in review for the 3.2.0 release.
@fl0fischer

Copy link
Copy Markdown
Collaborator

The MuJoCo 4.0 follow-up is #972 (lifts the <4 cap for the CPU backend in 3.2); for #928 the Intel-Mac point remains.

@M-Colley

M-Colley commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Sounds like a good plan to me :)

Resolve the uv.lock conflict by re-locking the merged pyproject.toml
from this branch's lock with uv 0.13.8. The result adds the tslearn
analysis extra from dev (formulaic, interface-meta, llvmlite, narwhals,
numba, patsy, statsmodels, tslearn) at dev's versions and keeps this
branch's versions for every other package.
dev reverted MyoHub#867 (MyoHub#978). Resolve the uv.lock conflict by re-locking
the merged pyproject.toml from this branch's lock with uv 0.13.8, which
removes the eight tslearn analysis packages again. uv.lock and
pyproject.toml now match 1b147a3, from before MyoHub#867 was merged in.
@M-Colley M-Colley added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code stack:standalone Targets dev directly with no open PR or unreleased prerequisites area:core-envs Core ModelBuilder, physics/math/trace utils, Athletic & ChaseTag envs area:training-ci RL training scripts/PPO configs, performance cards & CI workflows labels Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core-envs Core ModelBuilder, physics/math/trace utils, Athletic & ChaseTag envs area:training-ci RL training scripts/PPO configs, performance cards & CI workflows dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code stack:standalone Targets dev directly with no open PR or unreleased prerequisites

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants