From 80c90ada438e2b9e1d992e102500a950a073cad4 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 21 Jan 2020 17:16:19 +0900 Subject: [PATCH] fix sip loading when not provided from Qt --- src/calibre/ebooks/oeb/polish/check/css.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/check/css.py b/src/calibre/ebooks/oeb/polish/check/css.py index f48ad11838..d96c84c4ad 100644 --- a/src/calibre/ebooks/oeb/polish/check/css.py +++ b/src/calibre/ebooks/oeb/polish/check/css.py @@ -10,7 +10,10 @@ import numbers import sys from collections import namedtuple -from PyQt5 import sip +try: + from PyQt5 import sip +except ImportError: + import sip from PyQt5.Qt import QApplication, QEventLoop, pyqtSignal from PyQt5.QtWebEngineWidgets import ( QWebEnginePage, QWebEngineProfile, QWebEngineScript