Closed AlexanderKoch-Koch closed 4 years ago
@AlexanderKoch-Koch Thanks for trying metaworld! We would love to help.
Are you able to visualize MuJoCo-based environments from openai/gym? e.g.
import gym
env = gym.make('Ant-v2')
env.reset()
env.render()
Can you tell us some more details about your development environment?
I had tried a few MuJoCo envs before. They have all worked (Reacher-v2, FetchReach-v1, InvertedPendulum). However, Ant-v2 and e.g. FetchPush-v1 almost never work. It seems to be random. I tried Ant-v2 about 20 times and launched succesfully only once. The FetchPush-v1 has about a 50% success rate.
Python version: 3.8.2 Environment manger: none Operating System: Ubuntu 20.04 Docker: no Intel drivers (no external GPU)
I have found a partially working workaround. I can remove the glfw.poll_events() call in MjViewerBasisc in mjviewer.py in mujoco_py. It renders successfully, but it's not interactive anymore.
mujoco_py is only tested on Python <=3.7. Can you trying using a different version of Python (e.g. by making use of pyenv
)?
mujoco_py builds bindings to native system libraries (e.g. glfw and your graphics drivers) and unfortunately new bugs pop up every time those get upgraded. I'm not sure the extent to which it's been tested on Ubuntu 20.04.
Because you can't get rendering to work with openai gym either, this points to a problem with your MuJoco/glfw/graphics drivers rather than a bug in metaworld.
Have you tried the standard LD_LIBRARY_PATH amendments for mujoco? e.g. export LD_LIBRARY_PATH=$USER/.mujoco/mujoco200_linux/bin
?
I have tested it now with Python3.5 and Python3.6. Now all openai gym envs work fine. However metaworld is still throwing an error.
I have found a known issue in glfw here: https://github.com/glfw/glfw/issues/1633 I was using the last release 3.3.2 from January. Now I have compiled the current master branch myself. And it's working now.
Thank you for your help.
I have problems running a simple example with rendering. I am running this on my local machine with a display.
Here is the code
Here is the output