Qt6 WebEngine: QtWebEngineProcess tries to use system-wide libraries

Phil Thompson phil at riverbankcomputing.com
Fri Aug 27 09:17:14 BST 2021


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.

Phil


More information about the PyQt mailing list