Skip to content

Commit 2e187fa

Browse files
committed
fix(libero): pin MuJoCo for robosuite 1.4
1 parent 5bf7fcd commit 2e187fa

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

gr00t/eval/sim/LIBERO/setup_libero.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ uv venv $LIBERO_UV_ENV/.venv --python 3.10
2525
source $LIBERO_UV_ENV/.venv/bin/activate
2626
# uv pip install gymnasium==1.2.0 # -> 2.9.1 ->
2727
uv pip install --requirements $LIBERO_REPO/requirements.txt
28+
# robosuite 1.4 calls the MuJoCo 2.x mj_fullM(model, dst, qM) binding.
29+
# MuJoCo 3.10 changed it to mj_fullM(model, data, dst), breaking env creation.
30+
uv pip install mujoco==2.3.7
2831
uv pip install -e $LIBERO_REPO --config-settings editable_mode=compat
2932
uv pip install --editable $PROJECT_REPO --no-deps --python-version 3.12
3033
uv pip install torch==2.5.1 torchvision==0.20.1 pydantic av tianshou==0.5.1 tyro pandas dm_tree einops==0.8.1 albumentations==1.4.18 zmq
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
from pathlib import Path
17+
18+
19+
REPO_ROOT = Path(__file__).resolve().parents[2]
20+
SETUP_SCRIPT = REPO_ROOT / "gr00t/eval/sim/LIBERO/setup_libero.sh"
21+
22+
23+
def test_libero_setup_pins_mujoco_compatible_with_robosuite_1_4() -> None:
24+
"""robosuite 1.4 uses the MuJoCo 2.x ``mj_fullM`` Python signature."""
25+
setup_script = SETUP_SCRIPT.read_text()
26+
27+
assert "mujoco==2.3.7" in setup_script

0 commit comments

Comments
 (0)