Missing libxml2 in PyQt binaries

Florian Bruhin me at the-compiler.org
Wed May 21 08:49:11 BST 2025



On 2025-05-06T14:04:56 , Florian Bruhin wrote:
> On 2025-05-06T10:39:55 , Phil Thompson wrote:
> > 
> > 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.
> 
> Makes sense. I opened a Qt bug report:
> https://bugreports.qt.io/browse/QTBUG-136637

This was now fixed on Qt's side by using the bundled libxml2 starting
with QtWebEngine 6.9.2:
https://codereview.qt-project.org/c/qt/qtwebengine/+/644388

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/20250521/8ed4df08/attachment.sig>


More information about the PyQt mailing list