Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8eb36dc + 0ba0668 commit 7d40606Copy full SHA for 7d40606
1 file changed
setupext.py
@@ -1657,14 +1657,16 @@ def check(self):
1657
from PyQt4 import pyqtconfig
1658
except ImportError:
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))
+ # Import may still be broken for our python
+ try:
+ qtconfig = pyqtconfig.Configuration()
+ except AttributeError:
+ raise CheckFailed('PyQt4 not correctly imported')
+ BackendAgg.force = True
+ return ("Qt: %s, PyQt4: %s" %
+ (self.convert_qt_version(
1668
+ qtconfig.qt_version),
1669
+ qtconfig.pyqt_version_str))
1670
1671
1672
class BackendPySide(OptionalBackendPackage):
0 commit comments