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
Bug: backend_pdf: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 #3076
Conversation
What version of mpl are you using? On current master I get issues coming out of latex (I assume that my system latex isn't set up for cyrilic/I don't have the Russian babel package). Not sure if this is before or after the line where you get the error. If I turn |
matplotlib 1.4.x (master branch). I also had an error from the latex on my system if I comment the line:
But with this line turned on I have an error on mpl side.. I'm out of understanding how the latex <-> matplotlib interconnection works, but for me this issue makes some trouble:) And the solution for me - roll back one line of code in backend_pdf.py |
I think the attached should fix this. @dmitryikh: Can you confirm? Unfortunately, I'm not sure how to write a test for this, since we don't currently assume a latex install for our tests. |
We could just make travis install latex and have a knownfail like we do with the animation tests in cases where it is not installed. |
That would be ideal. I wonder if installing something as big as LaTeX (with the necessary international packages to test something like this) would use up our Travis quota too much. We could do it in only one of the four configurations, I suppose, as a way to ameliorate that. |
Travis is already taking a long time to run, and generating reams of output--I would really hesitate before pulling in LaTeX each time. A standard linux LaTeX install, at least on ubuntu, pulls in a huge mound of packages. |
I think that's been "coming to Travis" for a long time, but they aren't there yet. |
@mdboom, it fixed this!:) |
I think we should go with this PR as is, and defer any LaTeX-based Travis tests. |
Bug: backend_pdf: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2
I tried this simple example on python 2.7.2:
(matplotlib 1.4.x)
But I got:
It seems that this fix mdboom@38d846b
brakes the compatibility with cyrilic symbols.
The previous edition of backend_pdf.py with:
Works just fine to me.
Or I'm doing something wrong?
Thanx!