Post

PyOpenGL 버전 이슈 해결

버전 이슈 해결

PyOpenGL 버전 이슈 해결

Mesh Renderer 사용시 발생하는 문제.

ImportError: cannot import name ‘OSMesaCreateContextAttribs’ from ‘OpenGL.osmesa’ (/opt/conda/envs/4d/lib/python3.10/site-packages/OpenGL/osmesa/init.py)

PyOpenGL 3.1.7 이전 버전은 OSMesaCreateContextAttribs 를 지원하지 않는다. 그 이후 버전을 설치하면 간단하게 해결이 된다.

  • pip install “PyOpenGL>=3.1.7” “PyOpenGL_accelerate>=3.1.7”
This post is licensed under CC BY 4.0 by the author.