Repository navigation
Conversation
|
Please include a more comprehensive Python-version/support audit before landing. Reviewed head If the intention is to retire Python 3.10, these active locations also need coordinated changes:
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
left a comment
There was a problem hiding this comment.
make the PR coverage complete as the changes required affect other parts of the repo
2550e49 to
886cf23
Compare
Vittorio-Caggiano
left a comment
There was a problem hiding this comment.
@M-Colley do we have core features that depend on mujoco 3.11 or mjlab 1.6?
|
@Vittorio-Caggiano Here is how current
If we want #748, #927, and #943 to land cleanly and align |
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.
886cf23 to
0bf0ce1
Compare
@fl0fischer should we have this in 3.2 or hold until 3.3? |
|
Point 2 of my comment above is wrong for three merged mjlab twins. They fail on mjlab 1.4.0, which In the locked environment (
A default For the 3.2/3.3 question: if #928 waits for 3.3, 3.2 still needs |
Resolve the CHANGELOG.md link-reference conflict by keeping both [MyoHub#923] from dev and [MyoHub#928], in ascending order.
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.
|
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 "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, MuJoCo 4.0.x. I'd keep #928 as the pin change and lift the
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.
|
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.
Category: dependency floor update (
pyproject.toml+uv.lock; Milestone3.2; requires maintainer approval).Summary
Raises MyoSuite's MuJoCo floor to
>=3.11,<4on all platforms with 3.11+ wheels andmjlab>=1.6.0(mujoco-warp>=3.11.0,<4), while keeping Intel macOS (x86_64) onmujoco>=3.10,<3.11via environment markers (1b147a32, per 3.2 release planning with@fl0fischer; CPU MuJoCo 4.0 support is split into #972).google-deepmind/mujoco#3406): Before MuJoCo 3.11,MjSpec.copy()andattach(copy_during_attach=True)leave each copied tendon wrap without its model. ReadingMjsWrap.targetorMjsWrap.sidesiteon the copy dereferences a null pointer and crashes the interpreter (fixed in MuJoCo 3.11.0).ModelBuilder.build_spec()andcached_specalways return copies, so every recipe spec is already a copy when itsedit_fnruns (blockingdelete_jointin Let the arm-reach edit build with hands that have tendon-tied nodes #748 andMyoHub/myo_sim#209/ Take dependency-safe joint and tendon deletion from myo_sim #927 on MuJoCo 3.8.1).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), andmink>=1.3.0on every Python>=3.10.pyproject.toml([mjlab]&[mjx]):mjlab>=1.6.0,mujoco-warp>=3.11.0,<4,mujoco>=3.11, andmujoco-mjx>=3.11,<4on non-Intel-Mac platforms (torch>=2.13andwarp-lang>=1.11already published no Intel macOS wheels).uv.lock(uv 0.13.8):mjlab1.4.0 -> 1.6.1;mujoco/mujoco-mjx/mujoco-warp3.8.1 -> 3.11.0(plusmujoco 3.10.0marker branch for Intel Macs; Python>=3.14stays on3.14.0);rsl-rl-lib5.2.0 -> 5.4.2;mink1.1.0 -> 1.3.0;qpsolvers4.11.0 -> 4.13.0;mediapy1.2.7;warp-lang1.19.0.backends/mjlab/tasks/mdp/commands.py(env_ids=Nonedefault formjlab < 1.6),backends/mjlab/mjlab_env_base.py(normalize_mjlab_env_idsfallback narrowed to missingmjlab),tests/support/optional_deps.py(require_mujoco_warpdefault3.11.0),test_mjviser_constraint.py(supports marker-split coremujocopins),integrations/musclemimic/fullbody_eval_cli.py,utils/asset_path_resolver.py,tutorials/3.3_Inverse_Dynamics.ipynb(MuJoCo < 3.2.6branch removed),CHANGELOG.md,README.md, anddocs/source/install.rst.Ownership & Reuse (
REVIEW.md)MyoSuite(pyproject.toml,uv.lock, version-compatibility guards, and install documentation; coordinates withMyoHub/myo_sim#209and build(deps): allow MuJoCo 4.0.x on the CPU backend #972).resolve_env_idsdelegation innormalize_mjlab_env_ids(mjlab_env_base.py),require_mujoco_warp(tests/support/optional_deps.py), andtest_mjviser_constraint.py.mjlab < 1.6andMuJoCo < 3.2.6compatibility branches (310lines removed/updated across lock and source).Compatibility & Platform Support
3.11+). Local checkouts on older locks needuv sync.3.10–3.15: Preserved (requires-python >= 3.10; CI covers3.11,3.13,3.15on Ubuntu plus3.10on full/release runs).x86_64): Preserved on Python<=3.13viamujoco>=3.10,<3.11(onnxruntimehas no Intel macOS wheels for Python3.14;[mjlab]and[mjx]are skipped via markers).training/supermimicalready requiresmjlab>=1.6andmujoco-warp>=3.11;chasetag_teacher,dynsyn, and thenewtonprobe (newton[sim]on MuJoCo3.17) remain compatible; themujoco-warp < 3.16sidesite warning inmodel_recipes.pystill applies (mjlab 1.6pinsmujoco-warp 3.11).Verification & Reproduction
Minimal reproduction (
devprior 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)"3.8.1):Windows fatal exception: access violation(exit 139).3.11.0): printss_glenohum_ligament -> s_glenohum_s_glenohum-P1_r.Test matrix (Windows 11 local + Ubuntu CI):
uv sync --locked, extrasdev, mjlab, onnx, mjx3875 passed, 65 skipped, 9 xfailed, 1 xpassed(+4 Windowsbrax-absent MJX skips)mjlab 1.6.0)mjlabgroup; verification block857 passed, 13 skipped;349 passed, 3 skippedbrax 0.14.1,flax 0.10.6,orbax-checkpoint 0.11.23)test_mjx.py,test_mjx_setup_helpers.py,tests/mjx/,test_modular_env.py170 passeduv pip install -e .[dev,mjlab,onnx,mjx]test_mjx.py353 passed, 3 skipped526 passed, 7 skipped, 1 xfailed60c8b641, with Intel Mac markers)cpu,mjlab,tutorials,docs,pre-commitNot run:
uv lockwheel resolution verified via platform markers).docs/baseline_checkpoints.mdmjlab win/solve rates (CI unlocked runs already used3.11.0).