Xpra: Ticket #781: Python openGL fail to load

Description: Installed PyOpenGL_accelerate and PyOpenGL via pip as root. Using xdummy. When connecting to server, opengl rendering fail with these messages python opengl module failed with message:

2015-01-06 16:55:59,951  __init__() takes at least 2 positional arguments (1 given)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xpra/client/gtk2/client.py", line 463, in init_opengl
    self.opengl_props = gl_check.check_support(min_texture_size, force_enable=(enable_opengl is True))
  File "/usr/lib/python2.7/dist-packages/xpra/client/gl/gl_check.py", line 438, in check_support
    gl_props = check_GL_support(gldrawable, glcontext, min_texture_size, force_enable)
  File "/usr/lib/python2.7/dist-packages/xpra/client/gl/gl_check.py", line 165, in check_GL_support
  File "/usr/lib/python2.7/dist-packages/OpenGL/GL/__init__.py", line 3, in <module>
    from OpenGL.GL.VERSION.GL_1_1 import *
  File "/usr/lib/python2.7/dist-packages/OpenGL/GL/VERSION/GL_1_1.py", line 10, in <module>
    from OpenGL import platform, constants, constant, arrayspl
  File "/usr/lib/python2.7/dist-packages/OpenGL/arrays/__init__.py", line 19, in <module>
    from OpenGL.arrays.arraydatatype import *
  File "/usr/lib/python2.7/dist-packages/OpenGL/arrays/arraydatatype.py", line 14, in <module>
    from OpenGL_accelerate.arraydatatype import ArrayDatatype as ADT
  File "arraydatatype.pyx", line 1, in init OpenGL_accelerate.arraydatatype (src/arraydatatype.c:10964)
  File "wrapper.pyx", line 3, in init OpenGL_accelerate.wrapper (src/wrapper.c:11183)
  File "/usr/lib/python2.7/dist-packages/OpenGL/error.py", line 224, in <module>
    ErrorChecker = _ErrorChecker( platform )
  File "errorchecker.pyx", line 17, in OpenGL_accelerate.errorchecker._ErrorChecker.__init__ (src/errorchecker.c:818)
TypeError: __init__() takes at least 2 positional arguments (1 given)

Wed, 07 Jan 2015 00:47:32 GMT - Antoine Martin: status, description changed; resolution set

This is a pyopengl / pyopengl accelerate installation issue, not an xpra issue. Please report it there, not here.

PS: please use attachments rather than overly long tickets in the future.

Thu, 08 Jan 2015 06:29:15 GMT - Antoine Martin: attachment set

replacing long text with attachment

Thu, 08 Jan 2015 06:30:34 GMT - Antoine Martin: description changed

(see attachment for original ticket contents)

As per FAQ, this particular error was caused by mixing distribution installed opengl with a pip install of the accelerate module. The versions must match!

Fri, 11 Sep 2015 02:58:58 GMT - Antoine Martin: summary changed

Sat, 23 Jan 2021 05:05:47 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/781