[PyQt] QOpenGLWidget missing module PyQt5._QOpenGLFunctions_2_1

Peter Jensen farkpj at gmail.com
Wed Mar 11 21:30:32 GMT 2015


Hi

I have a problem using the QOpenGLWidget.
I get an import error concerning missing module: PyQt5._QOpenGLFunctions_2_1
Among many other things, I have tried forcing OpenGL 2.0 with
QSurfaceFormat() and setVersion, but it doesn’t appear to make any
difference.

Using Windows 8.1, Python 3.4.2(x32) and PyQt5-5.4.1-gpl-Py3.4-Qt5.4.1-x32

Running the included example hellogl.py results in:
File "C:/Python34/Lib/site-packages/PyQt5/examples/opengl/hellogl.py", line
142, in initializeGL
    self.gl = self.context().versionFunctions()
ImportError: No module named 'PyQt5._QOpenGLFunctions_2_1'

Hellogl.py based on QGLWidget in PyQT 5.4.0 examples works.

Any help that would make QOpenGLWidget work, is very welcome.

Thanks in advance

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150311/e334ede3/attachment.html>


More information about the PyQt mailing list