Closed TheChymera closed 9 years ago
I have to admit I have no clue, but apparently this has something to do with the display system. The tests are meant to run with an Agg backend, i.e. without any windows and the like, and I wouldn't be surprised if something went wrong when matplotlib insisted on using a windowing system.
I guess there can be code in the tests to force the Agg backend - I might have never gotten this error because I run tests on the server where this setting is the default anyway.
Try editing your matplotlibrc
, setting backend : Agg
there, and re-running py.test
?
ahm, ok, I also tested this on one of my servers, and indeed the tests pass nicely. So it might just not be getting along with systems that are running X or something.
Sadly, I am doing all of this in my package manager sandbox, and I would very much like to avoid doing anything outside of it - so I might not be the right person to debug. Maybe you could also try to run the tests on a machine with X? I am packaging this for Gentoo, so I will definitely follow up on this issue.
Hm, I tested this on a couple of machines with X and I cannot reproduce the problem. Setting the backend to GtkAgg
did not help either. Perhaps you could make a Docker
example for me to reproduce?
@konstantint It's ok, I think I made a mistake implementing the test phase, which just happened to blow up on my laptop but not my server.
OK, I'll close this issue then. Thanks!
For some one who encount problem: "pygobject version too old -- it must have require_version" when "import matplotlib.pyplot as plt"
all you need is sudo pip uninstall matplotlib then sudo pip install matplotlib
Hi, I am trying to run the package test suite, and for some reason it fails. Does it have anything to do with my cursor? o.0