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