Hi I have installed rllab++ although the version of mujoco_py in the environment.yaml is no longer available to download. I have tried the 0.5.7 and the 1.50.1 but when I run the do not work with the example trpo_swimmer.py
For mujoco_py==0.5.7 i get:
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module. "downsample module has been moved to the theano.tensor.signal.pool module.") Traceback (most recent call last): File "Libraries/rllabplusplus/examples/trpo_swimmer.py", line 7, in <module> env = normalize(SwimmerEnv()) File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/swimmer_env.py", line 22, in __init__ super(SwimmerEnv, self).__init__(*args, **kwargs) File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/mujoco_env.py", line 88, in __init__ self.reset() File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/mujoco_env.py", line 133, in reset return self.get_current_obs() File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/swimmer_env.py", line 29, in get_current_obs self.get_body_com("torso").flat, File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/mujoco_env.py", line 234, in get_body_com idx = self.model.body_names.index(body_name) ValueError: 'torso' is not in list
while for mujoco_py==1.50.1 I get:
`building 'mujoco_py.cymj' extension
C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
compile options: '-I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py -I/home/tartaglia/Libraries/mujoco/mjpro131/include -I/home/tartaglia/.local/lib/python3.5/site-packages/numpy/core/include -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/vendor/egl -I/media/DATA/anaconda3/envs/rllab3/include/python3.5m -c'
extra options: '-fopenmp -w'
gcc: /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c: In function ‘copyFBOToPBO’:
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:245:12: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offSamples’
if (con->offSamples)
^
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:254:51: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offFBO_r’
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, con->offFBO_r);
^
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:265:51: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offFBO_r’
glBindFramebuffer(GL_READ_FRAMEBUFFER, con->offFBO_r);
^
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c: In function ‘copyFBOToPBO’:
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:245:12: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offSamples’
if (con->offSamples)
^
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:254:51: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offFBO_r’
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, con->offFBO_r);
^
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:265:51: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offFBO_r’
glBindFramebuffer(GL_READ_FRAMEBUFFER, con->offFBO_r);
^
Traceback (most recent call last):
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/unixccompiler.py", line 58, in UnixCCompiler__compile
extra_postargs, display = display)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 89, in
m = lambda self, *args, *kw: func(self, args, **kw)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 152, in CCompiler_spawn
raise DistutilsExecError('Command "%s" failed with exit status %d%s' % (cmd, s, msg))
distutils.errors.DistutilsExecError: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py -I/home/tartaglia/Libraries/mujoco/mjpro131/include -I/home/tartaglia/.local/lib/python3.5/site-packages/numpy/core/include -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/vendor/egl -I/media/DATA/anaconda3/envs/rllab3/include/python3.5m -c /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c -o /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/generated/_pyxbld_1.50.1.68_35_linuxgpuextensionbuilder/temp.linux-x86_64-3.5/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.o -fopenmp -w" failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Libraries/rllabplusplus/examples/trpo_swimmer.py", line 3, in
from rllab.envs.mujoco.swimmer_env import SwimmerEnv
File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/swimmer_env.py", line 3, in
from .mujoco_env import MujocoEnv
File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/mujoco_env.py", line 9, in
from mujoco_py import MjModel, MjViewer
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/init.py", line 3, in
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 503, in
cymj = load_cython_ext(mjpro_path)
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 105, in load_cython_ext
cext_so_path = builder.build()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 220, in build
built_so_file_path = self._build_impl()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 290, in _build_impl
so_file_path = super()._build_impl()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 243, in _build_impl
dist.run_commands()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/tartaglia/.local/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 143, in build_extensions
build_ext.build_extensions(self)
File "/home/tartaglia/.local/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/distutils/command/build_ext.py", line 532, in build_extension
depends=ext.depends)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 89, in
m = lambda self, *args, kw: func(self, *args, *kw)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 343, in CCompiler_compile
single_compile(o)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 303, in single_compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 89, in
m = lambda self, args, kw: func(self, *args, **kw)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/unixccompiler.py", line 61, in UnixCCompiler__compile
raise CompileError(msg)
distutils.errors.CompileError: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py -I/home/tartaglia/Libraries/mujoco/mjpro131/include -I/home/tartaglia/.local/lib/python3.5/site-packages/numpy/core/include -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/vendor/egl -I/media/DATA/anaconda3/envs/rllab3/include/python3.5m -c /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c -o /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/generated/_pyxbld_1.50.1.68_35_linuxgpuextensionbuilder/temp.linux-x86_64-3.5/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.o -fopenmp -w" failed with exit status 1`
Hi I have installed rllab++ although the version of mujoco_py in the environment.yaml is no longer available to download. I have tried the 0.5.7 and the 1.50.1 but when I run the do not work with the example trpo_swimmer.py
For mujoco_py==0.5.7 i get:
/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module. "downsample module has been moved to the theano.tensor.signal.pool module.") Traceback (most recent call last): File "Libraries/rllabplusplus/examples/trpo_swimmer.py", line 7, in <module> env = normalize(SwimmerEnv()) File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/swimmer_env.py", line 22, in __init__ super(SwimmerEnv, self).__init__(*args, **kwargs) File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/mujoco_env.py", line 88, in __init__ self.reset() File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/mujoco_env.py", line 133, in reset return self.get_current_obs() File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/swimmer_env.py", line 29, in get_current_obs self.get_body_com("torso").flat, File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/mujoco_env.py", line 234, in get_body_com idx = self.model.body_names.index(body_name) ValueError: 'torso' is not in list
while for mujoco_py==1.50.1 I get: `building 'mujoco_py.cymj' extension C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
compile options: '-I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py -I/home/tartaglia/Libraries/mujoco/mjpro131/include -I/home/tartaglia/.local/lib/python3.5/site-packages/numpy/core/include -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/vendor/egl -I/media/DATA/anaconda3/envs/rllab3/include/python3.5m -c' extra options: '-fopenmp -w' gcc: /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c: In function ‘copyFBOToPBO’: /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:245:12: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offSamples’ if (con->offSamples) ^ /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:254:51: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offFBO_r’ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, con->offFBO_r); ^ /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:265:51: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offFBO_r’ glBindFramebuffer(GL_READ_FRAMEBUFFER, con->offFBO_r); ^ /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c: In function ‘copyFBOToPBO’: /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:245:12: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offSamples’ if (con->offSamples) ^ /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:254:51: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offFBO_r’ glBindFramebuffer(GL_DRAW_FRAMEBUFFER, con->offFBO_r); ^ /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c:265:51: error: ‘mjrContext {aka struct _mjrContext}’ has no member named ‘offFBO_r’ glBindFramebuffer(GL_READ_FRAMEBUFFER, con->offFBO_r); ^ Traceback (most recent call last): File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/unixccompiler.py", line 58, in UnixCCompiler__compile extra_postargs, display = display) File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 89, in
m = lambda self, *args, *kw: func(self, args, **kw)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 152, in CCompiler_spawn
raise DistutilsExecError('Command "%s" failed with exit status %d%s' % (cmd, s, msg))
distutils.errors.DistutilsExecError: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py -I/home/tartaglia/Libraries/mujoco/mjpro131/include -I/home/tartaglia/.local/lib/python3.5/site-packages/numpy/core/include -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/vendor/egl -I/media/DATA/anaconda3/envs/rllab3/include/python3.5m -c /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c -o /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/generated/_pyxbld_1.50.1.68_35_linuxgpuextensionbuilder/temp.linux-x86_64-3.5/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.o -fopenmp -w" failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "Libraries/rllabplusplus/examples/trpo_swimmer.py", line 3, in
from rllab.envs.mujoco.swimmer_env import SwimmerEnv
File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/swimmer_env.py", line 3, in
from .mujoco_env import MujocoEnv
File "/home/tartaglia/Libraries/rllabplusplus/rllab/envs/mujoco/mujoco_env.py", line 9, in
from mujoco_py import MjModel, MjViewer
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/init.py", line 3, in
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 503, in
cymj = load_cython_ext(mjpro_path)
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 105, in load_cython_ext
cext_so_path = builder.build()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 220, in build
built_so_file_path = self._build_impl()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 290, in _build_impl
so_file_path = super()._build_impl()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 243, in _build_impl
dist.run_commands()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/tartaglia/.local/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/builder.py", line 143, in build_extensions
build_ext.build_extensions(self)
File "/home/tartaglia/.local/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/media/DATA/anaconda3/envs/rllab3/lib/python3.5/distutils/command/build_ext.py", line 532, in build_extension
depends=ext.depends)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 89, in
m = lambda self, *args, kw: func(self, *args, *kw)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 343, in CCompiler_compile
single_compile(o)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 303, in single_compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/ccompiler.py", line 89, in
m = lambda self, args, kw: func(self, *args, **kw)
File "/home/tartaglia/.local/lib/python3.5/site-packages/numpy/distutils/unixccompiler.py", line 61, in UnixCCompiler__compile
raise CompileError(msg)
distutils.errors.CompileError: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py -I/home/tartaglia/Libraries/mujoco/mjpro131/include -I/home/tartaglia/.local/lib/python3.5/site-packages/numpy/core/include -I/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/vendor/egl -I/media/DATA/anaconda3/envs/rllab3/include/python3.5m -c /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.c -o /media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/generated/_pyxbld_1.50.1.68_35_linuxgpuextensionbuilder/temp.linux-x86_64-3.5/media/DATA/anaconda3/envs/rllab3/lib/python3.5/site-packages/mujoco_py/gl/eglshim.o -fopenmp -w" failed with exit status 1`
plus 100 lines of warnings.
Do you have any suggestion?
Giorgio