Missing libxml2 in PyQt binaries

Phil Thompson phil at riverbankcomputing.com
Tue May 6 10:39:55 BST 2025


On 06/05/2025 08:48, Florian Bruhin wrote:
> 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?

Maybe but only if it becomes a wider problem when I'd expect the Qt 
online installer to include the relevant libraries and I would include 
those. This is what happens with the ICU libraries.

Phil


More information about the PyQt mailing list