[winswitch] xpra and PyOpenGL

Anthony Stone ajs1 at cam.ac.uk
Sat Mar 18 12:36:01 GMT 2017


Hello,

I have just installed PyOpenGL-accelerate (I was using xpra without it
before) and I now get the error message below. xpra completes the
startup and is usable, but I would like to have OpenGL working. Is this
a known problem? Is it a bug or a problem with my setup? I have only
been using xpra for a few weeks so I'm not familiar with its workings.

I'm running xpra 1.04 under Ubuntu 16.04 to connect to a remote desktop
machine running the same version of xpra under Ubuntu 14.04.

Thanks,
Anthony

 $ xpra start ssh:whirligig --start=gnome-terminal &
 [1] 13911
 $ 2017-03-17 16:29:48,190 Xpra gtk2 client version 1.0.4-r15266 64-bit
2017-03-17 16:29:48,190  running on Linux Ubuntu 16.04 xenial
2017-03-17 16:29:48,191 Warning: failed to import opencv:
2017-03-17 16:29:48,191  No module named cv2
2017-03-17 16:29:48,191  webcam forwarding is disabled
2017-03-17 16:29:48,505 GStreamer version 1.8.3 for Python 2.7.12 64-bit
2017-03-17 16:29:48,747 OpenGL_accelerate module loaded
2017-03-17 16:29:48,748 Error loading OpenGL support:
2017-03-17 16:29:48,748  __init__() takes at least 2 positional
arguments (1 given)
Traceback (most recent call last):
  File
"/usr/lib/python2.7/dist-packages/xpra/client/gtk_base/gtk_client_base.py",
line 663, in init_opengl
    self.opengl_props =
gl_check.check_support(force_enable=(enable_opengl is True))
  File "/usr/lib/python2.7/dist-packages/xpra/client/gl/gl_check.py",
line 527, in check_support
    gl_props = check_GL_support(glarea, force_enable)
  File "/usr/lib/python2.7/dist-packages/xpra/client/gl/gl_check.py",
line 167, in check_GL_support
    return do_check_GL_support(force_enable)
  File "/usr/lib/python2.7/dist-packages/xpra/client/gl/gl_check.py",
line 189, in do_check_GL_support
    from OpenGL.GL import GL_VERSION, GL_EXTENSIONS
  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, arrays
  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)



More information about the shifter-users mailing list