Qt6 WebEngine: QtWebEngineProcess tries to use system-wide libraries

Florian Bruhin me at the-compiler.org
Thu Aug 26 16:07:46 BST 2021


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.

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/20210826/b2243faf/attachment.sig>


More information about the PyQt mailing list