wrong location for matplotlib example data

Bug #1721211 reported by zebul666 on 2017-10-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
matplotlib (Ubuntu)

Bug Description

I tried running a demo for matplotlib (https://matplotlib.org/mpl_examples/api/date_demo.py) and I got an error:

IOError: [Errno 2] No such file or directory: u'/usr/share/matplotlib/mpl-data/sample_data/goog.npy'

I did not investigate thoroughly but for me, the files are in the wrong location.

/usr/share/matplotlib/sample_data should be located in /usr/share/matplotlib/mpl_data/sample_data.

At least this is where matplotlib.cbook.get_sample_data() function will for its files not in /usr/share/matplotlib/sample_data

I don't know why it's the wrong location on ubuntu ???

For a quick fix, I made a symbolic link for sample_date in mpl_data directory.

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: python-matplotlib 2.0.0+dfsg1-2ubuntu1
ProcVersionSignature: Ubuntu 4.10.0-35.39-generic 4.10.17
Uname: Linux 4.10.0-35-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
CurrentDesktop: Unity:Unity7
Date: Wed Oct 4 10:44:37 2017
InstallationDate: Installed on 2016-05-22 (499 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: matplotlib
UpgradeStatus: Upgraded to zesty on 2017-04-14 (173 days ago)

zebul666 (zebul666) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers