mcfletch / pyopengl

Repository for the PyOpenGL Project
Other
314 stars 97 forks source link

ImportError: cannot import name 'OSMesaCreateContextAttribs' from 'OpenGL.osmesa' #70

Open lucasjinreal opened 2 years ago

lucasjinreal commented 2 years ago

ImportError: cannot import name 'OSMesaCreateContextAttribs' from 'OpenGL.osmesa'

fyviezhao commented 2 years ago

I'm not sure but you may try sudo apt-get install libosmesa6.

sunjunlishi commented 2 years ago

me,too error

sunjunlishi commented 2 years ago

File "/usr/local/lib/python3.8/dist-packages/pyrender/platforms/osmesa.py", line 19, in init_context from OpenGL.osmesa import (

Wyz2927 commented 2 years ago

how did you solve this problem? I'm looking forward your reply.

Italy2006 commented 2 years ago

me too

yuzewang1998 commented 1 year ago

me too

yuzewang1998 commented 1 year ago

I occur this problem when import pyrenderer. and I solved this problem by rolling back the pyOpenGL version, then re-pip the Pyrenderer.