robfiras / loco-mujoco

Imitation learning benchmark focusing on complex locomotion tasks using MuJoCo.
MIT License
539 stars 46 forks source link

mujoco.FatalError: OpenGL version 1.5 or higher required #29

Open PROPHETE-pro opened 4 months ago

PROPHETE-pro commented 4 months ago

Dear sir,

Thank you all for contributing to the community for this repo. I ran into some problems that made me unable to run the repo, so I am asking for your kind help.

After installing the repo following all the instructions provided in the ReadME, I tried to run the command:

python examples/simple_mushroom_env/example_unitree_a1.py

However, the code ended with "mujoco.FatalError: OpenGL version 1.5 or higher required".

I have searched about the OpenGL online and tried to install it using 'sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev', but it did not help.

Do you mind if you can provide some advice about how to solve this problem? Thank you so much for helping!

robfiras commented 4 months ago

Hi, what os are you running? Could you try to download the latest mujoco-binaries and check if you can run the simulate file found in mujoco-x.x.x/bin?

PROPHETE-pro commented 4 months ago

Hi, what os are you running? Could you try to download the latest mujoco-binaries and check if you can run the simulate file found in mujoco-x.x.x/bin?

I am running on Ubuntu 22.04.2 LTS. I downloaded mujuco-3.1.6 and the 'simulate' file is working, but when running loco-mujoco, the error is still there.

robfiras commented 4 months ago

So the simulate file can open a window and properly render everything? Maybe the issue is with glfw. Could you check the version? You could try to upgrade by pip install --upgrade glfw. It's hard to help here since I can not reproduce the error. I just found a related issue on openai/mujoco-py#378. You probably have seen them already though.