From 5ecd01cc991ee4783352765ee72ac5cbed91670b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 23 Oct 2018 16:02:59 +1000 Subject: [PATCH] support new sip module location qt has moved sip into a submodule --- aqt/qt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aqt/qt.py b/aqt/qt.py index c488f20a3..b2584056a 100644 --- a/aqt/qt.py +++ b/aqt/qt.py @@ -3,7 +3,6 @@ # fixme: make sure not to optimize imports on this file -import sip import os # fix buggy ubuntu12.04 display of language selector @@ -15,6 +14,10 @@ from PyQt5.Qt import * # trigger explicit message in case of missing libraries # instead of silently failing to import from PyQt5.QtWebEngineWidgets import QWebEnginePage +try: + from PyQt5 import sip +except ImportError: + import sip def debug(): from PyQt5.QtCore import pyqtRemoveInputHook