Hi, thanks for creating and sharing this repo!
I installed requirements_dev.txt in a conda env. I run into the following error while building 'mujoco_py.cymj' extension on importing mujoco_py.
import mujoco_py
running build_ext
building 'mujoco_py.cymj' extension
gcc -pthread -B /home/grads/s/sapanac/.conda/envs/hf_dt/compiler_compat -Wno-unused-result -Wsign-compare -D
NDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/grads/s/sapanac/.conda/envs/hf_dt/include -fPIC -O2 -isyst
em /home/grads/s/sapanac/.conda/envs/hf_dt/include -fPIC -I/home/grads/s/sapanac/.conda/envs/hf_dt/lib/pytho
n3.10/site-packages/mujoco_py -I/home/grads/s/sapanac/.mujoco/mujoco210/include -I/home/grads/s/sapanac/.con
da/envs/hf_dt/lib/python3.10/site-packages/numpy/core/include -I/home/grads/s/sapanac/.conda/envs/hf_dt/lib/
python3.10/site-packages/mujoco_py/vendor/egl -I/home/grads/s/sapanac/.conda/envs/hf_dt/include/python3.10 -
c /home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c -o /home/grads/s/sap
anac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/generated/_pyxbld_2.1.2.14_310_linuxgpuextensi
onbuilder/temp.linux-x86_64-cpython-310/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/
mujoco_py/cymj.o -fopenmp -w
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c: In function ‘_pyx_f
9mujoco_py_4cymj_9PyMjModel__set’:
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c:32003:80: error: ‘mjMo
del {aka struct _mjModel}’ has no member named ‘key_mpos’; did you mean ‘key_qpos’?
__pyx_t_1 = ((PyObject *)__pyx_f_9mujoco_py_4cymj__wrap_mjtNum_2d(__pyx_v_p->key_mpos, __pyx_v_p->nkey, (
3 * __pyx_v_p->nmocap))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1494, __pyx_L1_error)
^~~~~~~~
key_qpos
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c:32018:80: error: ‘mjMo
del {aka struct _mjModel}’ has no member named ‘key_mquat’; did you mean ‘body_quat’?
__pyx_t_1 = ((PyObject *)__pyx_f_9mujoco_py_4cymj__wrap_mjtNum_2d(__pyx_v_p->key_mquat, __pyx_v_p->nkey,
(4 * __pyx_v_p->nmocap))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1495, __pyx_L1_error)
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c: In function ‘_pyx_pf
9mujoco_py_4cymj_12PyMjvPerturb_7active2_2__set’:
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c:70110:22: error: ‘mjvPerturb {aka struct _mjvPerturb}’ has no member named ‘active2’; did you mean ‘active’?
__pyx_v_self->ptr->active2 = __pyx_v_x;
^~~~~~~
active
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c: In function ‘__pyx_f_9mujoco_py_4cymj_10PyMjvScene__set’:
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c:76665:82: error: ‘mjvScene {aka struct _mjvScene}’ has no member named ‘framergb’; did you mean ‘camera’?
__pyx_t_1 = ((PyObject *)__pyx_f_9mujoco_py_4cymj__wrap_float_1d((&(__pyx_v_p->framergb[0])), 3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 3743, __pyx_L1_error)
^~~~~~~~
camera
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c: In function ‘pyx_pf_9mujoco_py_4cymj_10PyMjvScene_10framewidth___get’:
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c:77372:53: error: ‘mjvScene {aka struct _mjvScene}’ has no member named ‘framewidth’
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->ptr->framewidth); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 3774, __pyx_L1_error)
^~
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c: In function ‘pyx_pf_9mujoco_py_4cymj_10PyMjvScene_10framewidth_2__set’:
/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/cymj.c:77427:20: error: ‘mjvScene {aka struct _mjvScene}’ has no member named ‘framewidth’
__pyx_v_self->ptr->framewidth = __pyx_v_x;
.
.
.
.
Traceback (most recent call last):
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/unixccomp
iler.py", line 186, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/ccompiler
.py", line 987, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/spawn.py"
, line 70, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/init.py", line 2,
in
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/builder.py", line 504, in
cymj = load_cython_ext(mujoco_path)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/builder.py", line 110, in load_cython_ext
cext_so_path = builder.build()
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/builder.py", line 226, in build
built_so_file_path = self._build_impl()
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/builder.py", line 249, in _build_impl
dist.run_commands()
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
self.run_command(cmd)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
cmd_obj.run()
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
self.build_extensions()
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/mujoco_py/builder.py", line 149, in build_extensions
build_ext.build_extensions(self)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
self._build_extensions_serial()
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
self.build_extension(ext)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
objects = self.compiler.compile(
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py", line 599, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/grads/s/sapanac/.conda/envs/hf_dt/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 188, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1