Closed
Description
Hi,
Is there any someone who faced mujoco_py compilation error?
My case is like this,
Obtaining file:///content/gdrive/My%20Drive/cs285_f2021/mujoco/mujoco-py
Installing build dependencies ... done
WARNING: Missing build requirements in pyproject.toml for file:///content/gdrive/My%20Drive/cs285_f2021/mujoco/mujoco-py.
WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Requirement already satisfied: imageio>=2.1.2 in /usr/local/lib/python3.7/dist-packages (from mujoco-py==2.1.2.14) (2.4.1)
Requirement already satisfied: glfw>=1.4.0 in /usr/local/lib/python3.7/dist-packages (from mujoco-py==2.1.2.14) (2.4.0)
Requirement already satisfied: cffi>=1.10 in /usr/local/lib/python3.7/dist-packages (from mujoco-py==2.1.2.14) (1.15.0)
Requirement already satisfied: fasteners~=0.15 in /usr/local/lib/python3.7/dist-packages (from mujoco-py==2.1.2.14) (0.16.3)
Requirement already satisfied: numpy>=1.11 in /usr/local/lib/python3.7/dist-packages (from mujoco-py==2.1.2.14) (1.19.5)
Requirement already satisfied: Cython>=0.27.2 in /usr/local/lib/python3.7/dist-packages (from mujoco-py==2.1.2.14) (0.29.24)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi>=1.10->mujoco-py==2.1.2.14) (2.21)
Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from fasteners~=0.15->mujoco-py==2.1.2.14) (1.15.0)
Requirement already satisfied: pillow in /usr/local/lib/python3.7/dist-packages (from imageio>=2.1.2->mujoco-py==2.1.2.14) (7.1.2)
Installing collected packages: mujoco-py
Attempting uninstall: mujoco-py
Found existing installation: mujoco-py 2.1.2.14
Can't uninstall 'mujoco-py'. No files were found to uninstall.
Running setup.py develop for mujoco-py
Successfully installed mujoco-py-2.1.2.14
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 -fdebug-prefix-map=/build/python3.7-Y7dWVB/python3.7-3.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-Y7dWVB/python3.7-3.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Imujoco_py -I/content/gdrive/My Drive/cs285_f2021/mujoco/mujoco-py/mujoco_py -I/content/cs285_f2021/mujoco/mujoco200/include -I/usr/local/lib/python3.7/dist-packages/numpy/core/include -I/usr/include/python3.7m -c /content/gdrive/My Drive/cs285_f2021/mujoco/mujoco-py/mujoco_py/cymj.c -o /content/gdrive/My Drive/cs285_f2021/mujoco/mujoco-py/mujoco_py/generated/_pyxbld_2.1.2.14_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7/content/gdrive/My Drive/cs285_f2021/mujoco/mujoco-py/mujoco_py/cymj.o -fopenmp -w
---------------------------------------------------------------------------
DistutilsExecError Traceback (most recent call last)
/usr/lib/python3.7/distutils/unixccompiler.py in _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)
117 self.spawn(compiler_so + cc_args + [src, '-o', obj] +
--> 118 extra_postargs)
119 except DistutilsExecError as msg:
20 frames
DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
CompileError Traceback (most recent call last)
/usr/lib/python3.7/distutils/unixccompiler.py in _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)
118 extra_postargs)
119 except DistutilsExecError as msg:
--> 120 raise CompileError(msg)
121
122 def create_static_lib(self, objects, output_libname,
CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I think this problem is related on mujoco_py version since it is widely updated for the new mujoco version release.
Is there any stable version for the homework?
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels