Metaworld icon indicating copy to clipboard operation
Metaworld copied to clipboard

Running with mujoco210 vs 200

Open nrjbs87 opened this issue 2 years ago • 6 comments

Hi there,

is seems the default mujoco-py is now version 210. However metaworld seems to expect mujoco200, an older version. Is there a simple tweak that can be made to run this environment in the most updated mujoco env or do I need to wrestle with a 200 install instead?

Thanks

nrjbs87 avatar Jan 24 '22 16:01 nrjbs87

Hey Neeraj,

I can spend a little time this week updating the mujoco version.

I think the short answer to your problem is that there is a version of mujoco-py that supports the newest mujoco, and you'll need to install that. Can you try that and get back to me?

Thanks! @avnishn

avnishn avatar Jan 24 '22 16:01 avnishn

Hi @avnishn ,

I have downloaded the newest version of mujoco which works with the newest version of mojoco-py, following these instructions here.

In a sandbox, the examples for mujoco-py work fine. When I get to the step in metaworld's README:

pip install -e .

I get the following:

image

I have tried downloading mujoco200 to match this but it's really been quite a headache. Is there a quick fix to make metaworld compatible with mujoco210?

nrjbs87 avatar Jan 24 '22 17:01 nrjbs87

The reason why it's failing is because the version of mujoco-py that is installed by metaworld looks for mujoco200. If you update that version of mujoco-py in the setup.py, then run pip install -e . , then you'll be able to run with mujoco 210.

avnishn avatar Jan 24 '22 17:01 avnishn

Yeah...looking back that really was a simple fix. Apologies...

Fixed by subbing out:

mujoco-py<2.2,>=2.1

In the setup.py

nrjbs87 avatar Jan 24 '22 17:01 nrjbs87

Hey no worries, happy to be of help. Going to leave this issue open do visibility!

avnishn avatar Jan 24 '22 17:01 avnishn

I have a fix for this on a branch. Since it's clearly affecting other users I'll push a change and also update the version number to 0.1.0 soon.

krzentner avatar Jan 24 '22 21:01 krzentner

As Meta-World ownership has been transferred from the RLWorkGroup to Farama Foundation, I am closing this issue. If there are any questions or requests for features please join our Discord

reginald-mclean avatar Feb 01 '23 15:02 reginald-mclean