File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1657,14 +1657,16 @@ def check(self):
16571657 from PyQt4 import pyqtconfig
16581658 except ImportError :
16591659 raise CheckFailed ("PyQt4 not found" )
1660- else :
1661-
1662- BackendAgg .force = True
1663-
1664- return ("Qt: %s, PyQt4: %s" %
1665- (self .convert_qt_version (
1666- pyqtconfig .Configuration ().qt_version ),
1667- pyqtconfig .Configuration ().pyqt_version_str ))
1660+ # Import may still be broken for our python
1661+ try :
1662+ qtconfig = pyqtconfig .Configuration ()
1663+ except AttributeError :
1664+ raise CheckFailed ('PyQt4 not correctly imported' )
1665+ BackendAgg .force = True
1666+ return ("Qt: %s, PyQt4: %s" %
1667+ (self .convert_qt_version (
1668+ qtconfig .qt_version ),
1669+ qtconfig .pyqt_version_str ))
16681670
16691671
16701672class BackendPySide (OptionalBackendPackage ):
You can’t perform that action at this time.
0 commit comments