Xpra: Ticket #1019: ImportError: No module named OpenGL.platform

Windows7, 64bit machine:

D:\Xpra\0.15.7>Xpra_cmd.exe attach ssh:USER@SERVER04:123  --speaker=disabled --microphone=disabled  -d opengl
2015-11-02 09:50:08,953 xpra gtk2 client version 0.15.7 (r10824)
2015-11-02 09:50:08,967 init_opengl(None)
xpra main error:
Traceback (most recent call last):
  File "xpra\scripts\main.pyc", line 130, in main
  File "xpra\scripts\main.pyc", line 873, in run_mode
  File "xpra\scripts\main.pyc", line 1269, in run_client
  File "xpra\client\ui_client_base.pyc", line 305, in init_ui
  File "xpra\client\gtk_base\gtk_client_base.pyc", line 429, in init_opengl
  File "xpra\platform\win32\gui.pyc", line 87, in gl_check
ImportError: No module named OpenGL.platform

Note that running with --opengl=no works fine from the commandline, but Xpra-Launcher.exe does crash.

Thanks,



Mon, 02 Nov 2015 11:17:28 GMT - Antoine Martin: owner, description changed

@adarrab: which opengl drivers are you using? (Intel maybe?) It probably will crash the same way, but can you try running the OpenGL_check.exe application in the Xpra folder?

You're the first one to report this so there must be something unusual in this setup.


Mon, 02 Nov 2015 11:59:34 GMT - adarrab:

Nvidia NVS 310 Driver version 320.86

OpenGL_check.exe doesn't do anything "Press Enter to close"


Mon, 02 Nov 2015 12:11:19 GMT - Antoine Martin:

I have also uploaded a new windows beta build with changeset r11113 which should help narrow down the specific opengl test which is causing the crash (it crashes trying to figure out if opengl should be enabled at all..)

Here's the sort of output you get from OpenGL_check.exe (which we need for reliable blacklisting):

C:\Program Files\Xpra>OpenGL_check.exe
2015-11-02 12:09:03,023 Warning: vendor 'Humper' is blacklisted!
2015-11-02 12:09:03,023 OpenGL glEnablei is not available, disabling transparency
2015-11-02 12:09:03,023 ERROR: some required OpenGL functions are not available: glGenFramebuffers, glBindFramebuffer, g
lFramebufferTexture2D
2015-11-02 12:09:03,104 OpenGL_accelerate module loaded
2015-11-02 12:09:03,104 Using accelerated ArrayDatatype
2015-11-02 12:09:03,104
2015-11-02 12:09:03,104 OpenGL errors:
2015-11-02 12:09:03,104   some required OpenGL functions are not available: glGenFramebuffers, glBindFramebuffer, glFram
ebufferTexture2D
2015-11-02 12:09:03,104
2015-11-02 12:09:03,114 OpenGL properties:
2015-11-02 12:09:03,114 * GLU extensions           :
2015-11-02 12:09:03,114 * GLU version              : 1.2.2.0 Microsoft Corporation
2015-11-02 12:09:03,114 * display_mode             : DOUBLE
2015-11-02 12:09:03,114 * gdkgl.version            : 5.1
2015-11-02 12:09:03,114 * gdkglext.version         : 1.2.0
2015-11-02 12:09:03,114 * gtkglext.version         : 1.2.0
2015-11-02 12:09:03,114 * has_alpha                : True
2015-11-02 12:09:03,114 * opengl                   : 2.1
2015-11-02 12:09:03,114 * pygdkglext.version       : 1.0.0
2015-11-02 12:09:03,114 * pyopengl                 : 3.1.0
2015-11-02 12:09:03,114 * renderer                 : Chromium
2015-11-02 12:09:03,114 * rgba                     : True
2015-11-02 12:09:03,114 * safe                     : False
2015-11-02 12:09:03,114 * shading language version : 4.50 NVIDIA
2015-11-02 12:09:03,114 * texture-size-limit       : 16384
2015-11-02 12:09:03,114 * vendor                   : Humper
2015-11-02 12:09:03,114 * zerocopy                 : True

Tue, 03 Nov 2015 06:44:25 GMT - adarrab: status changed; resolution set

Nevermind antoine, the problem was in my installation, somehow the OpenGL folder was missing many *pyc filles, reinstalling it fixed the problem.

You can mark it as closed Thanks,


Sat, 23 Jan 2021 05:12:40 GMT - migration script:

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