multi-agent-emergence-environments
multi-agent-emergence-environments copied to clipboard
Error when running the four environment files of multi-agent-emergence-environments
I encounter the follwoing error when I want to run the four environments in "/multi-agent-emergence-environments-master/mae_envs/envs" folder:
running build_ext building 'mujoco_py.cymj' extension x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Imujoco-py-1.50.1.0/mujoco_py -I/notebooks/mujoco-py-1.50.1.0/mujoco_py -Inotebooks/mujoco/mjpro150/include -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c /notebooks/mujoco-py-1.50.1.0/mujoco_py/cymj.c -o /notebooks/mujoco-py-1.50.1.0/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.8/notebooks/mujoco-py-1.50.1.0/mujoco_py/cymj.o -fopenmp -w /notebooks/mujoco-py-1.50.1.0/mujoco_py/cymj.c:666:10: fatal error: mjmodel.h: No such file or directory 666 | #include "mjmodel.h" | ^~~~~~~~~~~ compilation terminated. Traceback (most recent call last): File "/usr/lib/python3.8/distutils/unixccompiler.py", line 117, in _compile self.spawn(compiler_so + cc_args + [src, '-o', obj] + File "/usr/lib/python3.8/distutils/ccompiler.py", line 910, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.8/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix raise DistutilsExecError( distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "multi-agent-emergence-environments-master/mae_envs/envs/blueprint_construction.py", line 5, in
"mjmodel.h" is already in "/mujoco/mjpro/include/mjmodel.h". So my question is that most probably the environment files or more specifically "cymj.c" is not able to find "mjmodel.h" due to some problem in installation, or is there any other reason? Thanks!