-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ERROR: matplotlib.tests.test_backend_pgf.test_xelatex #1116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Apparently there was an error compiling the latex document, but the error message is lost because I messed up the exception handling :). Could you run this test again with the fixed version? |
Here's what I get now:
|
Yea, that problem.. the reason for this is just an outdated TeX version. Fedora 17 distributes TeX Live 2007, which is now over 5 years old and these features were probably in a highly experimental stage at this time. I think the TeX Live 2009 in Ubuntu 2012 works but it is also 3 years old. I don't think there is much I can do at this point. Its a shame that distributions like debian, fedora and ubuntu continue to ship these packages since the net is full of bug reports concerning errors that were fixed years ago :/ |
Ok. No need to fix this bug, then, but I wonder if there's a way to detect the TeX version, and if too old, set the test to "known fail". There are other known fail tests in matplotlib, so you should be able to follow that model -- the only difference would be detecting the TeX version and figuring out what the cutoff should be. |
So far I'm only checking for the existence of xelatex to mark the test as known-to-fail. It's complicated since texlive isn't the only distribution so it doesn't come down to checking one a single version number. One would have to check the version of the pgf/tikz package, which isn't possible if it cannot be loaded at all. What's the output of |
I was worried it would be something complicated like that. I'm just concerned that we have a test in the suite the looks as if matplotlib is failing, when in fact it's just a problem with an external dependency. I wonder if there's a way to test for the error when xelatex is the wrong version and make the test pass, and only get nitpicky about the results if we actually got something real back from xelatex. In any case, here's my version output:
|
Hm.. I wonder if I should mention that in the documentation :) |
.. no there is no real version information of use in there.. I first tried to check the pgf version number as well but the way Hope this works for you. |
This is on Fedora 17, with xelatex installed.
The text was updated successfully, but these errors were encountered: