google-deepmind / google-deepmind/dm_control
Mujoco 3.3.6 is breaking dm_control
- Langage dominant
- Python
- Étoiles
- 4.7k
- Forks
- 764
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Installing dm_control from pypi makes it unusable:
```
$ suite.load("cheetah", "run")
...
File "/Users/vmoens/venv/rl/lib/python3.11/site-packages/dm_control/suite/cheetah.py", line 45, in run
physics = Physics.from_xml_string(*get_model_and_assets())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vmoens/venv/rl/lib/python3.11/site-packages/dm_control/mujoco/engine.py", line 444, in from_xml_string
return cls.from_model(model)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/vmoens/venv/rl/lib/python3.11/site-packages/dm_control/mujoco/engine.py", line 427, in from_model
return cls(data)
^^^^^^^^^
File "/Users/vmoens/venv/rl/lib/python3.11/site-packages/dm_control/mujoco/engine.py", line 123, in __init__
self._reload_from_data(data)
File "/Users/vmoens/venv/rl/lib/python3.11/site-packages/dm_control/mujoco/engine.py", line 408, in _reload_from_data
data=index.struct_indexer(self.data, 'mjdata', axis_indexers),)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vmoens/venv/rl/lib/python3.11/site-packages/dm_control/mujoco/index.py", line 628, in struct_indexer
attr = getattr(struct, field_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MjData' object has no attribute 'B_colind'
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduce the failure with suite.load("cheetah", "run") using the PyPI package, then inspect dm_control/mujoco/index.py around struct_indexer and dm_control/mujoco/engine.py around _reload_from_data. Done means the cheetah run no longer raises the MjData B_colind AttributeError with MuJoCo 3.3.6.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- machine-learning
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100