You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
(mujoco) traversaro@IITBMP014LW012:~$ MUJOCO_GL="osmesa" python -c "import mujoco"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/traversaro/miniforge3/envs/mujoco/lib/python3.12/site-packages/mujoco/__init__.py", line 47, in <module>
from mujoco.gl_context import *
File "/home/traversaro/miniforge3/envs/mujoco/lib/python3.12/site-packages/mujoco/gl_context.py", line 38, in <module>
from mujoco.osmesa import GLContext as _GLContext
File "/home/traversaro/miniforge3/envs/mujoco/lib/python3.12/site-packages/mujoco/osmesa/__init__.py", line 31, in <module>
from OpenGL import GL
File "/home/traversaro/miniforge3/envs/mujoco/lib/python3.12/site-packages/OpenGL/GL/__init__.py", line 4, in <module>
from OpenGL.GL.VERSION.GL_1_1 import *
File "/home/traversaro/miniforge3/envs/mujoco/lib/python3.12/site-packages/OpenGL/GL/VERSION/GL_1_1.py", line 14, in <module>
from OpenGL.raw.GL.VERSION.GL_1_1 import *
File "/home/traversaro/miniforge3/envs/mujoco/lib/python3.12/site-packages/OpenGL/raw/GL/VERSION/GL_1_1.py", line 7, in <module>
from OpenGL.raw.GL import _errors
File "/home/traversaro/miniforge3/envs/mujoco/lib/python3.12/site-packages/OpenGL/raw/GL/_errors.py", line 4, in <module>
_error_checker = _ErrorChecker( _p, _p.GL.glGetError )
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'glGetError'
The problem is that pyopengl is trying to load the OSMesa library, but that was not installed.
The problem was solved installing mesalib package. As MUJOCO_GL=osmesa is extensively mentioned and referenced in MuJoCo examples, I think we should just add mesalib as a dependency of libmujoco at least on Linux, and call it a day.
Solution to issue cannot be found in the documentation.
Issue
The problem is that pyopengl is trying to load the
OSMesa
library, but that was not installed.Installed packages
Environment info
The text was updated successfully, but these errors were encountered: