[Bug Report] Hopper "global" XML error
rickstaa opened this issue ยท 5 comments
Describe the bug
When trying to run the Hopper-v4 environment, I receive the following error:
ValueError: XML Error: global coordinates no longer supported. To convert existing models, load and save them in MuJoCo 2.3.3 or older
Element 'compiler', line 2
As explained in google-deepmind/mujoco#833, this is caused by an upstream change in the Mujoco library. For now, the best way to solve this is to pin Mujoco to version 2.3.3
. I, however, wanted to open this issue to track the release of #589. Feel free to close this issue if you think this is unnecessary.
Code example
- Install Mujoco
v0.28.0
. - Try to run the following code:
import gymnasium as gym
if __name__ == "__main__":
env = gym.make('Hopper-v4', render_mode='human')
env.reset()
print("Testing Hopper-v4 environment.")
for _ in range(1000):
env.render()
env.step(env.action_space.sample())
env.close()
print("Test finished.")
- Be greeted by the error.
System info
Gymnasium install type: pip
Pip version: 23.1.2
Gymnasium version: 0.28.1
Mujoco version: 2.3.6
OS: Ubuntu 20.04
Python: 3.8.10
Additional context
Will be solved when #589 is released.
Checklist
- I have checked that there is no similar issue in the repo
This has already been fixed in #589
We will hopefully have a release soon for everyone to use
For future reference. This was released under https://github.com/Farama-Foundation/Gymnasium/releases/tag/v0.29.0.
This has already been fixed in #589 We will hopefully have a release soon for everyone to use
but how to use the file to fix the problem?
This has already been fixed in #589 We will hopefully have a release soon for everyone to use
but how to use the file to fix the problem?
You should just need to use gymnasium v0.29.0