-1

I installed the mesa utilities with the following command in the docker file:

RUN apt-get install -y libgl1-mesa-dev freeglut3-dev mesa-common-dev

but I am getting the error:

from OpenGL.raw.GL import _errors File "/usr/local/lib/python3.9/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'

is there something I am missing, maybe a neccessary version? This code is right after the OpenGL import

os.environ['PYOPENGL_PLATFORM'] = "osmesa"
os.environ['MESA_GL_VERSION_OVERRIDE'] = "3.3"
from OpenGL import GL, osmesa

Am I installing mesa or opengl correctly on the docker container? if not how can I install it?

AynonT
  • 225
  • 5
  • 13

0 Answers0