-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import pyplot issue - #14263
Comments
Seems like no backend could be set and we fell through all candidates in This has two aspects:
|
diff --git i/lib/matplotlib/pyplot.py w/lib/matplotlib/pyplot.py
index 4f266917e..dda130995 100644
--- i/lib/matplotlib/pyplot.py
+++ w/lib/matplotlib/pyplot.py
@@ -198,8 +198,8 @@ def switch_backend(newbackend):
# Don't try to fallback on the cairo-based backends as they each have
# an additional dependency (pycairo) over the agg-based backend, and
# are of worse quality.
- for candidate in ["macosx", "qt5agg", "qt4agg", "gtk3agg", "tkagg",
- "wxagg", "agg"]:
+ for candidate in [
+ "macosx", "qt5agg", "qt4agg", "gtk3agg", "tkagg", "wxagg"]:
try:
switch_backend(candidate)
except ImportError:
@@ -207,6 +207,8 @@ def switch_backend(newbackend):
else:
rcParamsOrig['backend'] = candidate
return
+ else:
+ switch_backend("agg") # This should always succeed.
+ rcParamsOrig["backend"] = "agg"
+ return
backend_name = (
newbackend[9:] if newbackend.startswith("module://") so that if |
Hello, root@MyPC:/usr/lib/python3/dist-packages# python3
pillow upgrade seems to be the root cause (?).
|
root@MyPC:/usr/local/lib/python3.7/dist-packages# ls -lh|grep mat
drwxr-sr-x 13 root staff 4,0K mai 19 20:01 matplotlib
drwxr-sr-x 2 root staff 4,0K mai 19 20:01 matplotlib-3.1.0+832.gc4382b0b6-py3.7.egg-info
drwxr-sr-x 6 root staff 4,0K mai 19 20:04 matplotlib-3.1.0+832.gc4382b0b6-py3.7-linux-x86_64.egg
-rw-r--r-- 1 root staff 569 mai 19 20:01 matplotlib-3.1.0+832.gc4382b0b6-py3.7-nspkg.pth
root@MyPC:/usr/local/lib/python3.7/dist-packages# python3
Python 3.7.1 (default, Oct 22 2018, 11:21:55)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: