From a7c27b08eb59bf20a246a61569dc732aeb8247e9 Mon Sep 17 00:00:00 2001 From: Glutanimate Date: Fri, 15 Feb 2019 13:51:57 +0100 Subject: [PATCH 1/2] Update pip command for PyQt packaging changes PyQtWebEngine is now shipped separately, and PyQ5-sip is automatically installed as a dependency of PyQt5. --- README.development | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.development b/README.development index 299bb3937..d597b32ad 100644 --- a/README.development +++ b/README.development @@ -28,7 +28,7 @@ pyqt5-dev-tools) as well. If you're on another platform or your distro has the wrong Qt version, you can install PyQt with pip: -$ pip3 install sip pyqt5 +$ pip3 install PyQt5 PyQtWebEngine To use the development version: From ff74c51d9fe62049310c1c10780092a25a0a4327 Mon Sep 17 00:00:00 2001 From: Glutanimate Date: Fri, 15 Feb 2019 13:55:35 +0100 Subject: [PATCH 2/2] Explicitly import all QtWebEngineWidgets Seems to be necessary for pyqt 5.12+ builds from pypi. --- aqt/qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/qt.py b/aqt/qt.py index fea2d26c3..4936c300a 100644 --- a/aqt/qt.py +++ b/aqt/qt.py @@ -13,7 +13,7 @@ from anki.utils import isWin, isMac from PyQt5.Qt import * # trigger explicit message in case of missing libraries # instead of silently failing to import -from PyQt5.QtWebEngineWidgets import QWebEnginePage +from PyQt5.QtWebEngineWidgets import * try: from PyQt5 import sip except ImportError: