google-deepmind / google-deepmind/mujoco_playground
Can't verify installation when building from source
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 359
- Avg merge
- 7d 3h
- Merged PRs (30d)
- 1
Description
Following the installation steps "From Source" as described in the README fails at step 7 (Verify installation (and download Menagerie): python -c "import mujoco_playground")
Doing so yields an AttributeError:
```
Traceback (most recent call last):
File "", line 1, in
File ".../mujoco_playground/mujoco_playground/__init__.py", line 16, in
from mujoco_playground._src import dm_control_suite
File ".../mujoco_playground/mujoco_playground/_src/dm_control_suite/__init__.py", line 22, in
from mujoco_playground._src import mjx_env
File ".../mujoco_playground/mujoco_playground/_src/mjx_env.py", line 28, in
from mujoco import mjx
File ".../mujoco_playground/.venv/lib/python3.11/site-packages/mujoco/mjx/__init__.py", line 18, in
from mujoco.mjx._src.collision_driver import collision
File ".../mujoco_playground/.venv/lib/python3.11/site-packages/mujoco/mjx/_src/collision_driver.py", line 47, in
from mujoco.mjx._src import support
File ".../mujoco_playground/.venv/lib/python3.11/site-packages/mujoco/mjx/_src/support.py", line 25, in
from mujoco.mjx._src import scan
File ".../mujoco_playground/.venv/lib/python3.11/site-packages/mujoco/mjx/_src/scan.py", line 22, in
from mujoco.mjx._src.types import JointType
File ".../mujoco_playground/.venv/lib/python3.11/site-packages/mujoco/mjx/_src/types.py", line 84, in
class EnableBit(enum.IntFlag):
File ".../mujoco_playground/.venv/lib/python3.11/site-packages/mujoco/mjx/_src/types.py", line 95, in EnableBit
SLEEP = mujoco.mjtEnableBit.mjENBL_SLEEP
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'mujoco._enums.mjtEnableBit' has no attribute 'mjENBL_SLEEP'
```
This problem stems from mujoco-mjx. I guess some changes were done, that aren't working properly, so I tried to change the dependencies in the pyproject.toml file to include a previous version of mujoco and mujoco-mjx, but it resulted in:
```
Because only mujoco-mjx==3.3.8 is available and mujoco-mjx==3.3.8 depends on mujoco>=3.3.8.dev0, we can conclude that all
versions of mujoco-mjx depend on mujoco>=3.3.8.dev0.
And because playground==0.0.5 depends on mujoco-mjx and mujoco>=3.3.6.dev0,<3.3.8, we can conclude that playground==0.0.5 cannot
be used.
And because only playground[all]==0.0.5 is available and you require playground[all], we can conclude that your requirements
are unsatisfiable.
```
Any help would be appreciated!
Contributor guide
Assessment
This issue has not been assessed yet.