mujoco-py
mujoco-py copied to clipboard
Can not import mujoco_py in singularity
Describe the bug Can not import mujoco_py in singularity, error msg is "OSError: [Errno 30] Read-only file system: '/opt/mujoco-py/mujoco_py/cymj.c' ..." detailed error message is in the attached file below.
To Reproduce the singularity code is modified from previous issue mujoco210.txt
Then I run export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/brzheng/.mujoco/mujoco200/bin
and python
import mujoco_py
Expected behavior I expect to import mujoco_py under the new version of mujoco
Error Messages error Messages: error_msg.txt
Desktop (please complete the following information):
- singularity Ubuntu 18.04.5 LTS
- Python 3.7.10
- Mujoco 2.10
- mujoco-py version 2.0.2.5
Environment
-
output of:
echo $LD_LIBRARY_PATH
= /usr/local/nvidia/lib:/usr/local/nvidia/lib64:/.singularity.d/libs:/.singularity.d/libs:/home/brzheng/.mujoco/mujoco200/bin -
output of:
echo $HOME
=/home/brzheng -
output of:
echo $USER
=brzheng
Additional context -------UPDATE--------- The Error msg of cloning original mujoco-py repo is like distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1 detail shows below. error_msg.txt
-------UPDATE--2--------------------- Fixed this bug by using the mujoco200 instead of mujoco210.
I think this is the change that might help you: https://github.com/tadashiK/mujoco-py/blob/1458e68466c1feb87cac8a08438ef36369292320/mujoco_py/builder.py#L86-L88 Ref: https://github.com/openai/mujoco-py/issues/523#issuecomment-735790819
With some help from ResearchIT at UoM, we were able to fix this issue. Please feel free to refer to this repository: https://github.com/avirupdas55/D4RL-Docker