Am 27.04.21 um 14:31 schrieb Juan Erbes:
El dom, 25 abr 2021 a las 12:16, Christophe Giboudeaux (
) escribió: On Sunday, 25 April 2021 16:59:09 CEST Christophe Giboudeaux wrote:
On Sunday, 25 April 2021 16:07:41 CEST Juan Erbes wrote:
from PyQt5.QtWebKitWidgets import QWebView
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
Please check if installing python3-qtwebengine-qt5 helps.
Looks like it won't. QtWebkit support was dropped from python-qt5. openshot wasn't in the list when we checked all pyQt5 users however.
Upstream supports qtwebengine but they didn't make a release since ages.
QtWebKitWidgets is present on the package http://ftp5.gwdg.de/pub/opensuse/distribution/openSUSE-stable/repo/oss/x86_6...
That package is for Leap 15.2. QtWebKit *itself* is still present in Tumbleweed. But PyQt5 support for it has been removed already. Until libqt5-qtwebkit is removed from Tumbleweed you can use [1]. I tested on my workstation. Openshot-qt starts with it and I could also play an imported clip, but hardware acceleration is probably not properly set up on my system:
Hardware decoding device number: 0 Hardware decoding device number: 0 [h264 @ 0x561ad5cee880] Invalid setup for format vdpau: does not match the type of the provided device context. [h264 @ 0x561ad5cee880] Invalid setup for format cuda: does not match the type of the provided device context. preferences:WARNING CheckPixel failed testing hardware decoding in preferences (i.e. wrong color found): 1-0 Hardware decoding device number: 1 Hardware decoding device number: 1 [h264 @ 0x561ad5cbff40] Invalid setup for format vdpau: does not match the type of the provided device context. [h264 @ 0x561ad5cbff40] Invalid setup for format cuda: does not match the type of the provided device context.
Now it comes down to a race: Is libqt5-qtwebkit being removed from TW before the penshot-qt developers release a new version? Support for PyQt-WebEngine is already in place on their current development repo. I would have suggested to install PyQt5 from the official PyPI wheels (they also bundle their own Qt), but even those do not have QtWebKit support enabled. Beware that PyQtWebKit from PyPI (pip install) is NOT an official package. Don't try that. Finally, you could try to build your own wheel with a bundled Qt [2, 3]. Cheers, Ben [1] https://download.opensuse.org/repositories/home:/bnavigator:/pyqt:/webkit/Factory_snapshot/x86_64/python38-qt5-webkit-5.15.4-212.1.x86_64.rpm[2] https://www.riverbankcomputing.com/static/Docs/PyQt-builder/pyqtbundle.html [3] https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html#build...