Importing qt_compat when no Qt binding is installed fails with NameError instead of ImportError #11629
Labels
GUI: Qt
Release critical
For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
Bug report
Bug summary
See title.
Code for reproduction
In a clean venv with matplotlib (HEAD) installed and no qt binding installed, import
matplotlib.backends.qt_compat
.Actual outcome
Expected outcome
An ImportError.
Matplotlib version
print(matplotlib.get_backend())
):Introduced by #11500 (I think).
#9993 fixes the issue and is ready to go.
The text was updated successfully, but these errors were encountered: