[PyQt] After update Linux Debian get "shader compilation failed"

Florian Bruhin me at the-compiler.org
Tue Mar 20 21:21:16 GMT 2018


On Tue, Mar 20, 2018 at 08:47:11PM +0000, Starglider Developer wrote:
> I reboot after the update, because I work with VM and just reboot now.
> 
> The output of glxinfo -b is:
> 
> [...]
> OpenGL vendor string: NVIDIA Corporation

You're probably dealing with this bug in the nvidia driver then:
https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/941826
I don't know how an update would've affected this, though.

Anyways, doing this in your application before using QtWebEngine (or
maybe before importing it, not sure) will likely help:

    import ctypes
    import ctypes.util
    ctypes.CDLL(ctypes.util.find_library("GL"), mode=ctypes.RTLD_GLOBAL)

Florian

-- 
https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180320/ed587487/attachment.sig>


More information about the PyQt mailing list