Open TachikakaMin opened 2 years ago
Let me answer this question since Mujoco_py seems be abandoned by Deepmind.
I don't know why mujoco-py[2.1.2.14] will make python killed. So I change to mujoco-py[2.0.2.8]. However, mujoco-py[2.0.2.8] still needs a license and uses mujoco200. We need to solve some compiler errors.
Open python and import mujoco_py, you will get some compiler error
in /opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/mujoco_py/builder.py Add gcc11 path, since only gcc11 is arm native. Or you can set CC.
c_compilers = ['/opt/homebrew/bin/gcc-11',
'/usr/local/bin/gcc-6',
'/usr/local/bin/gcc-7',
'/usr/local/bin/gcc-8',
'/opt/local/bin/gcc-mp-6',
'/opt/local/bin/gcc-mp-7',
'/opt/local/bin/gcc-mp-8']
# if not exists(key_path):
# message = MISSING_KEY_MESSAGE.format(key_path)
# print(message, file=sys.stderr)
# raise Exception(message)
change some variables "legendoff" to "legendoffset" , compiler will tell you the path.
/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/mujoco_py/init.py
# mujoco_py.builder.find_key()
Describe the bug
When import mujoco_py, python crashed
To Reproduce install mujoco-py and import mujoco_py.
Expected behavior
[1] 39540 killed python -c 'import mujoco_py'
Error Messages Including more/longer error messages gives us more information to work with.
Desktop (please complete the following information):
Environment
echo $LD_LIBRARY_PATH
echo $HOME
echo $USER
Additional context Add any other context about the problem here.