8000 import pyplot issue - · Issue #14263 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
import pyplot issue -  #14263
Closed
Closed
@terranova42

Description

@terranova42

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.

from matplotlib import pyplot
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.7/dist-packages/matplotlib/pyplot.py", line 2310, in
switch_backend(rcParams["backend"])
File "/usr/local/lib/python3.7/dist-packages/matplotlib/init.py", line 810, in getitem
plt.switch_backend(rcsetup._auto_backend_sentinel)
File "/usr/local/lib/python3.7/dist-packages/matplotlib/pyplot.py", line 212, in switch_backend
newbackend[9:] if newbackend.startswith("module://")
AttributeError: 'object' object has no attribute 'startswith'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0