Open mcondarelli opened 1 year ago
It turn out it is a known problem of updated security in the underlying Chromium web engine. With certain lib combination it may be needed to define ENV variable:
export QTWEBENGINE_CHROMIUM_FLAGS=--disable-seccomp-filter-sandbox
I have no idea what is "proper fix" in this case.
I ran into the same issue, looks like it is a bug in chromium, but QT created a work around.
here is a nice explanation of what is going on.
Looks like the fix is in 5.15.10, however if you are using PyQtWebEngine installed from pip, it is based on 5.15.6, which unfortunately does not have this fix. So until they release a newer version we will be stuck with this work around...
pip show PyQtWebEngine
Name: PyQtWebEngine
Version: 5.15.6
Summary: Python bindings for the Qt WebEngine framework
Home-page: https://www.riverbankcomputing.com/software/pyqtwebengine/
Author: Riverbank Computing Limited
Author-email: info@riverbankcomputing.com
License: GPL v3
@mcondarelli thank you for finding this, it saved me a bunch of time trying to figure out what was going on.
@mcondarelli So, how can I use pyqtlet2 on linux (ubuntu 22.04)? I can't install version 5.15.10 Thank you.
export QTWEBENGINE_CHROMIUM_FLAGS=--disable-seccomp-filter-sandbox
In the terminal before launching your application
export QTWEBENGINE_CHROMIUM_FLAGS=--disable-seccomp-filter-sandbox
In the terminal before launching your application
Thank you very much.
Hi, this is most likely some goofiness on my side and not a pyqtlet2 problem, but...
I had to fish out a program I wrote using pyqtlet2 and it flatly refuses to work.
I still have the original copy installed on a laptop and it still works there.
I need to move it to another computer as preliminary to port it to run on Win but it plain fails to work. Even the standard example behaves in the same way: it enters in
MapWidget._loadPage()
gets intoinit_loop.exec_()
and never returns from there.I am probably missing something in the new installation, but I cannot divine what.
What should I check?
TiA!