File tree 1 file changed +10
-8
lines changed
Filter options
1 file changed +10
-8
lines changed
Original file line number Diff line number Diff line change @@ -1657,14 +1657,16 @@ def check(self):
1657
1657
from PyQt4 import pyqtconfig
1658
1658
except ImportError :
1659
1659
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 ))
1668
1670
1669
1671
1670
1672
class BackendPySide (OptionalBackendPackage ):
You can’t perform that action at this time.
0 commit comments