[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Travis and PyQt 5.12: xcb plugin can't be loaded
From:       Florian Bruhin <me () the-compiler ! org>
Date:       2019-02-17 19:09:23
Message-ID: 20190217190923.q2jiy33cxvikkncd () hooch ! localdomain
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi,

Just in case anyone else runs into this as well:

After upgrading to the PyQt 5.12 wheel on Travis, I got an abort() when
trying to create a QApplication:

  qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in \
".../site-packages/PyQt5/plugins/platforms" even though it was found.  This \
application failed to start because no Qt platform plugin could be initialized. \
Reinstalling the application may fix this problem.

After debugging this via QT_DEBUG_PLUGINS=1, I found out the xcb plugin
couldn't be loaded due to a missing libxkbcommon-x11.so.0.

This can be fixed by telling Travis to install it:

  addons:
    apt:
      packages:
      - libxkbcommon-x11-0

Still I wonder where that new dependency is coming from - I guess that's
a change in Qt? That library isn't required with 5.11:

  $ ldd ./PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64/PyQt5/Qt/plugins/platforms/libqxcb.so \
| grep libxkb  (no output)

But it is with 5.12:

  $ ldd ./PyQt5-5.12-5.12.1_a-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64/PyQt5/Qt/plugins/platforms/libqxcb.so \
| grep libxkb  libxkbcommon-x11.so.0 => /usr/lib/libxkbcommon-x11.so.0 \
(0x00007f52361a2000)  libxkbcommon.so.0 => /usr/lib/libxkbcommon.so.0 \
(0x00007f5236160000)

Florian

-- 
https://www.qutebrowser.org | me@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/


["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic