pyqtlet2 icon indicating copy to clipboard operation
pyqtlet2 copied to clipboard

pyqtlet2 not working anymore

Open mcondarelli opened this issue 1 year ago • 5 comments

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 into init_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!

mcondarelli avatar Mar 24 '23 12:03 mcondarelli

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.

mcondarelli avatar May 08 '23 07:05 mcondarelli

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: [email protected]
License: GPL v3

@mcondarelli thank you for finding this, it saved me a bunch of time trying to figure out what was going on.

crroush avatar Dec 28 '23 06:12 crroush

@mcondarelli So, how can I use pyqtlet2 on linux (ubuntu 22.04)? I can't install version 5.15.10 Thank you.

Diagru25 avatar Jan 09 '24 04:01 Diagru25

export QTWEBENGINE_CHROMIUM_FLAGS=--disable-seccomp-filter-sandbox

In the terminal before launching your application

crroush avatar Jan 09 '24 04:01 crroush

export QTWEBENGINE_CHROMIUM_FLAGS=--disable-seccomp-filter-sandbox

In the terminal before launching your application

Thank you very much.

Diagru25 avatar Jan 09 '24 09:01 Diagru25