mujoco-py icon indicating copy to clipboard operation
mujoco-py copied to clipboard

OpenGL version 1.5 or higher required

Open cbjtu opened this issue 6 years ago • 6 comments

I installed the mujoco and mujoco_py normally, and I can run the example at the README.

But at ~/.mujoco/mujoco200/bin I try to run ./simulate ../model/humanoid.xml, the server said that

MuJoCo Pro version 2.00
ERROR: OpenGL version 1.5 or higher required

Press Enter to exit ...

And get a Black Screen with nothing.

But I have installed the OpenGL related library, and there's rare issue about that. What can I do?

cbjtu avatar Mar 28 '19 09:03 cbjtu

I meet the same problem when I use mujco150, the error is

>>> import gym
>>> env = gym.make("FetchPush-v1")
>>> obs = env.reset()
>>> env.render()
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Creating window glfw
ERROR: OpenGL version 1.5 or higher required

How can I solve it?

Baichenjia avatar Apr 02 '19 13:04 Baichenjia

I use Ubuntu 16.04, Anaconda python 3.6.1, mujoco-py 1.50.1.56 , gym 0.10.5 , Nvidia driver 410.73 and CUDA 10.
I can import mujoco_py and run env.step(action) successfully, but I cannot run env.render.

Baichenjia avatar Apr 02 '19 13:04 Baichenjia

I can train the model, but can't visualize it

cbjtu avatar Apr 04 '19 07:04 cbjtu

I meet the same problem when I use mujco150,

import gym env = gym.make("FetchPush-v1") obs = env.reset() env.render()

the error is GLFW error (code %d): %s 65544 b'X11: RandR gamma ramp support seems broken' GLFW error (code %d): %s 65542 b'EGL: Failed to get EGL display: Success' GLFW error (code %d): %s 65544 b'X11: RandR monitor support seems broken' Creating window glfw ERROR: OpenGL version 1.5 or higher required

Press Enter to exit ...

yyf17 avatar May 09 '19 09:05 yyf17

any thoughts? I'm having the same issue.

Rowing0914 avatar Dec 03 '19 07:12 Rowing0914

try "sudo gedit /etc/environment" and add one sentense below it LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/{username}/.mujoco/mujoco210/bin:/usr/lib/nvidia (you have to replace username to your user name) after that, try these commands sudo apt-get install libglew-dev sudo apt install libopengl0 and then, I can use this ./simulate ../model/humanoid.xml command. and got this humanoid_picture

apetrasc avatar May 29 '23 06:05 apetrasc