[PyQt] Ubuntu, PyQt/Qt 5.9, QOpenGLShaderProgram "is not linked"

Jérôme Laheurte jerome at jeromelaheurte.net
Mon Jul 17 09:04:36 BST 2017


> Le 15 juil. 2017 à 19:38, David Cortesi <davecortesi at gmail.com> a écrit :
> 
> Probably some stupid misconfiguration? But a program that works perfectly on Win7 and almost perfectly on MacOS, on Ubuntu the window is completely black and a series of many iterations of the following appear in stderr:
> 
> > QOpenGLShaderProgram::uniformLocation(qt_Matrix): shader program is not linked
> > QOpenGLShaderProgram: could not create shader program
> > QOpenGLShader: could not create shader
> > shader compilation failed: ""
> 
> The program uses only standard widgets e.g. QMainWindow, QListView, QWebEngineView. No explicit refs to QOpenG* anything.
> 
> Suggestions welcome…

Install python-opengl and add something along the line of

if platform.system() == « Linux »:
    from OpenGL import GL

See https://github.com/spyder-ide/spyder/issues/3226

Best regards
Jérôme Laheurte

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170717/2d18d5c7/attachment.sig>


More information about the PyQt mailing list