Skip to content

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Sep 27, 2013

Reported originally in the mailing list
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg27140.html

After installing matplotlib from standard Ubuntu packages, calling matplotlib.test() results in a lot of errors like:

IOError: Baseline image
'/home/user/result_images/test_triangulation/tripcolor1-expected.svg' does not exist.

This seems to be because baseline images are not included in the package (is it also required to run the tests from a particular directory?). I guess it happens in other distros and with windows installers too.

@mdboom
Copy link
Member

mdboom commented Sep 27, 2013

I've attached code that will raise an error message if the test data directory is missing.

pelson added a commit that referenced this pull request Sep 27, 2013
…t-data

Make matplotlib.test() print meaninful messages when baseline images are not installed
@pelson pelson merged commit e979bdf into matplotlib:v1.3.x Sep 27, 2013
@mdboom mdboom deleted the better-message-about-missing-test-data branch August 7, 2014 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants