You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If:
1. backend is not Qt{4,5}Agg
2. PyQt4 and PySide are installed, PyQt5 is not
3. backend.qt4 == 'PySide'
The fall through will start trying to import PyQt5 (so sip will be
imported as it is installed for PyQt4). It will then fall back to Qt4
using the binding specified in the rcparam ('PySide') which will then
miss the qt4 import conditionals which means QtCore is never imported
which means we get name errors from the pyqt / pyside patch up code.
This catches those exceptions and gives pyside a chance to be imported.
0 commit comments