Missing libxml2 in PyQt binaries

Florian Bruhin me at the-compiler.org
Tue May 6 08:48:53 BST 2025


Hey,

QtWebEngine seems to require libxml2.so.2.

However, libxml2 v2.14 was released recently, bumping the soname:
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.14.0

    Binary compatibility is restricted to versions 2.14 or newer.
    On ELF systems, the soname was bumped from libxml2.so.2 to libxml2.so.16.

Due to that, I'm now unable to import QtWebEngine from PyQt6 wheels on
Archlinux:

    $ python -c "from PyQt6 import QtWebEngineCore"
    [...]
    ImportError: libxml2.so.2: cannot open shared object file: No such file or directory

As a workaround, I uploaded libxml2.13 to the AUR, which can coexist
with libxml2 (2.14), because it installs into /opt and then symlinks to
/usr/lib/libxml2.so.2: https://aur.archlinux.org/packages/libxml2.13

But probably libxml2.so.2 should be shipped with the binaries?

Florian
-------------- 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/20250506/1cdd0186/attachment.sig>


More information about the PyQt mailing list