Qt6 WebEngine: QtWebEngineProcess tries to use system-wide libraries

Florian Bruhin me at the-compiler.org
Fri Aug 27 13:28:08 BST 2021


Hi,

On Fri, Aug 27, 2021 at 09:17:14AM +0100, Phil Thompson wrote:
> 
> On 26/08/2021 16:07, Florian Bruhin wrote:
> > Hi again,
> > 
> > When trying to run a simple QtWebEngine script on Arch Linux:
> > https://github.com/qutebrowser/qutebrowser/blob/qt6-test/scripts/testbrowser/testbrowser_webengine.py
> > 
> > I get:
> > 
> > 
> > .../.qt6/lib/python3.9/site-packages/PyQt6/Qt6/libexec/QtWebEngineProcess:
> > error while loading shared libraries: libQt6WebEngineCore.so.6: cannot
> > open shared object file: No such file or directory
> >     [same line repeated]
> >     [1]    222103 trace trap (core dumped)  python3
> > scripts/testbrowser/testbrowser_webengine.py
> > 
> > Looking at ldd, it looks like it's picking up the system-wide libraries
> > only, not the one in the virtualenv:
> > 
> >     $ ldd
> > .../.qt6/lib/python3.9/site-packages/PyQt6/Qt6/libexec/QtWebEngineProcess
> > 
> > .../.qt6/lib/python3.9/site-packages/PyQt6/Qt6/libexec/QtWebEngineProcess:
> > /usr/lib/libQt6Core.so.6: version `Qt_6.2' not found (required by
> > .../.qt6/lib/python3.9/site-packages/PyQt6/Qt6/libexec/QtWebEngineProcess)
> >         [...]
> >         libQt6WebEngineCore.so.6 => not found
> >         [...]
> >         libQt6Core.so.6 => /usr/lib/libQt6Core.so.6 (0x00007f0aa1e62000)
> > 
> > Running with:
> > 
> > LD_LIBRARY_PATH=$PWD/.qt6/lib/python3.9/site-packages/PyQt6/Qt6/lib/
> > 
> > seems to make it work.
> 
> I think this is a Qt bug. If you build the 'minimal' webenginewidgets C++
> example, it won't run either.

Looks like it indeed. I tried with simplebrowser, and I can run it from
Qt Creator, but not outside of it in a terminal.

Reported here: https://bugreports.qt.io/browse/QTBUG-96060

Thanks,
Florian

-- 
            me at the-compiler.org | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       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/20210827/f86c0237/attachment.sig>


More information about the PyQt mailing list