Closed
Description
I currently get an error when running "import matplotlib.pyplot as plt". Can't really track down the cause.
In Python 2:
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 28, in <module>
from matplotlib import style
File "/usr/lib/pymodules/python2.7/matplotlib/style/__init__.py", line 3, in <module>
from .core import use, context, available, library, reload_library
File "/usr/lib/pymodules/python2.7/matplotlib/style/core.py", line 149, in <module>
_base_library = load_base_library()
File "/usr/lib/pymodules/python2.7/matplotlib/style/core.py", line 94, in load_base_library
library.update(read_style_directory(BASE_LIBRARY_PATH))
File "/usr/lib/pymodules/python2.7/matplotlib/style/core.py", line 126, in read_style_directory
for path, name in iter_style_files(style_dir):
File "/usr/lib/pymodules/python2.7/matplotlib/style/core.py", line 115, in iter_style_files
for path in os.listdir(style_dir):
OSError: [Errno 2] No such file or directory: '/usr/share/matplotlib/mpl-data/stylelib'
In Python 3:
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 28, in <module>
from matplotlib import style
File "/usr/lib/python3/dist-packages/matplotlib/style/__init__.py", line 3, in <module>
from .core import use, context, available, library, reload_library
File "/usr/lib/python3/dist-packages/matplotlib/style/core.py", line 149, in <module>
_base_library = load_base_library()
File "/usr/lib/python3/dist-packages/matplotlib/style/core.py", line 94, in load_base_library
library.update(read_style_directory(BASE_LIBRARY_PATH))
File "/usr/lib/python3/dist-packages/matplotlib/style/core.py", line 126, in read_style_directory
for path, name in iter_style_files(style_dir):
File "/usr/lib/python3/dist-packages/matplotlib/style/core.py", line 115, in iter_style_files
for path in os.listdir(style_dir):
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/matplotlib/mpl-data/stylelib'
Metadata
Metadata
Assignees
Labels
No labels