Mujoco installation, binaries not found

Question:

I’m in trouble for installing mujoco.

I folows the steps at https://github.com/openai/mujoco-py/issues/253.

Everything worked correctly, but when I had to run "python examplesbody_interaction.py" I’m having an issue :

Traceback (most recent call last):
  File "D:Session UserDesktopcomputingstage2021_hedwinbmujoco-pyexamplesbody_interaction.py", line 10, in <module>
    from mujoco_py import load_model_from_xml, MjSim, MjViewer
  File "D:Session UserDesktopcomputingstage2021_hedwinbvenvlibsite-packagesmujoco_py__init__.py", line 2, in <module>
    init_config()
  File "D:Session UserDesktopcomputingstage2021_hedwinbvenvlibsite-packagesmujoco_pyconfig.py", line 37, in init_config
    raise error.MujocoDependencyError('Found your MuJoCo license key but not binaries. Please put your binaries into ~/.mujoco/mjpro131 or set MUJOCO_PY_MJPRO_PATH. Follow the instructions on https://github.com/openai/mujoco-py for
 setup.')
mujoco_py.error.MujocoDependencyError: Found your MuJoCo license key but not binaries. Please put your binaries into ~/.mujoco/mjpro131 or set MUJOCO_PY_MJPRO_PATH. Follow the instructions on https://github.com/openai/mujoco-py for
 setup.

This is how my .mujoco directory looks like:

enter image description here

And mujoco200 is the directory i downloaded from there: https://www.roboti.us/index.html for win64,

This is how my Env variables looks like:

enter image description here

To solve this, I tried to download "mjpro131 win64" from there, and add it to the env. variables using name "MUJOCO_PY_MJPRO_PATH", but then it gave me an other error:

Traceback (most recent call last):
  File "D:Session UserDesktopcomputingstage2021_hedwinbmujoco-pyexamplesbody_interaction.py", line 10, in <module>
    from mujoco_py import load_model_from_xml, MjSim, MjViewer
  File "D:Session UserDesktopcomputingstage2021_hedwinbvenvlibsite-packagesmujoco_py__init__.py", line 4, in <module>
    from .mjviewer import MjViewer
  File "D:Session UserDesktopcomputingstage2021_hedwinbvenvlibsite-packagesmujoco_pymjviewer.py", line 7, in <module>
    from . import mjcore, mjconstants, glfw
  File "D:Session UserDesktopcomputingstage2021_hedwinbvenvlibsite-packagesmujoco_pymjcore.py", line 6, in <module>
    from .mjlib import mjlib
  File "D:Session UserDesktopcomputingstage2021_hedwinbvenvlibsite-packagesmujoco_pymjlib.py", line 21, in <module>
    mjlib = cdll.LoadLibrary(os.path.abspath(libfile))
  File "C:UsersUserAppDataLocalProgramsPythonPython39libctypes__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "C:UsersUserAppDataLocalProgramsPythonPython39libctypes__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 n’est pas une application Win32 valide 

Last line translation:

OSError: [WinError 193] %1 Is not a valid win32 application.

I Also tried with the win32 achive, but it gave me the exact same error.

Asked By: Hedwin Bonnavaud

||

Answers:

I had the same problem in Linux. I decided to download the 0.5.7 version of mujoco

pip install mujoco-py==0.5.7

and then changed the requirements to

click==7.0
xmltodict==0.12.0
scipy==1.3.1
gym==0.10.8
jsonnet==0.11.2
numpy
mujoco-py==0.5.7

Here’s another link for instructions : installing mujoco

Answered By: Imen Bouabdallah

I am also facing the same issue. I tried pip install mujoco-py==0.5.7 with mujoco 210 but it is not working

Answered By: Pramod Pal
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.