[PyQt] Trouble Running OpenGL example programs on Windows 7

Phil Thompson phil at riverbankcomputing.com
Tue Nov 17 22:04:58 GMT 2015


On 17 Nov 2015, at 7:59 p.m., Marcus Cowgill <marcuscowgill at gmail.com> wrote:
> 
> I'm using Windows 7 64-bit Python 3.4.2 and PyQt 5.5.1 installed with exe installer.
> 
> The PyQt example programs seem to run fine except for the opengl ones. 
> 2dpainting.py runs but then python crashes on exit.  
> 
> The other opengl programs such as openglwindow.py give this error:
> 
> ImportError: No module named 'PyQt5._QOpenGLFunctions_4_5_Compatibility'
> 
> Have I neglected to install a needed library or do I need to build PyQt 
> in order to run the example programs? Thank you.

You have a more capable version of OpenGL than PyQt has support for (although it knows about the different versions Qt supports).

You could change the examples to use an explicit version which is supported.

Phil


More information about the PyQt mailing list