[PyOpenGL-Users] osmesa platform not working
Brought to you by:
mcfletch
From: Richard G. <ric...@cb...> - 2018-06-26 20:00:10
|
Hello, I am trying to get a project (pyoptools) to work which requires using pyopengl with the osmesa platform and am running into an issue. I can normally import OpenGL.GL fine, however after setting the environment variable PYOPENGL_PLATFORM=osmesa it fails to load : >>> from OpenGL.GL import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.6/site-packages/OpenGL/GL/__init__.py", line 4, in <module> from OpenGL.GL.VERSION.GL_1_1 import * File "/usr/lib/python3.6/site-packages/OpenGL/GL/VERSION/GL_1_1.py", line 14, in <module> from OpenGL.raw.GL.VERSION.GL_1_1 import * File "/usr/lib/python3.6/site-packages/OpenGL/raw/GL/VERSION/GL_1_1.py", line 7, in <module> from OpenGL.raw.GL import _errors File "/usr/lib/python3.6/site-packages/OpenGL/raw/GL/_errors.py", line 4, in <module> _error_checker = _ErrorChecker( _p, _p.GL.glGetError ) File "/usr/lib64/python3.6/ctypes/__init__.py", line 356, in __getattr__ func = self.__getitem__(name) File "/usr/lib64/python3.6/ctypes/__init__.py", line 361, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /lib64/libOSMesa.so.8: undefined symbol: glGetError I have tried this on a fedora 27 system and a recent arch linux system. It seem like there might have been a change with libOSMesa, or it is trying to load the wrong library. Checking the symbols in libOSMesa.so.8 using "nm -D", I don't see glGetError, or any other similar glGet* symbols like what I can see in libGL.so. Any help much appreciated. Thanks, -- Richard Private Confidentiality: This email (including all attachments) is intended solely for the named addressee. It is confidential and may contain privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this communication. If you have received this communication in error, please notify us immediately and delete the original message. This email is also subject to copyright. No part of it may be reproduced, adapted or transmitted without the consent of the copyright owner. |