Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 938eb09

Browse files
committed
MNT: make error message more verbose
1 parent 9a7a148 commit 938eb09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/backends/qt_compat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ def _getSaveFileName(*args, **kwargs):
141141
return QtGui.QFileDialog.getSaveFileName(*args, **kwargs), None
142142

143143
else:
144-
raise RuntimeError("No PyQt bindings found despite sip importing")
144+
raise RuntimeError("PyQt{4,5} bindings found despite sip importing\n"
145+
"Please install PyQt4 or PyQt5, uninstall sip or "
146+
"explicitly set the pyside backend.")
145147

146148
# Alias PyQt-specific functions for PySide compatibility.
147149
QtCore.Signal = QtCore.pyqtSignal

0 commit comments

Comments
 (0)