You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On Windows, matplotlib fails to load fonts when installed to a folder with non-ascii path #3148
After installing matplotlib (on Windows, via miniconda) to a non-ascii path, running
python -c "from matplotlib import pyplot as plt; plt.xlabel('$x$'); plt.show()"
fails with a long traceback that ends with
File "C:/non/ascii/path/to/matplotlib/mathtext.py", line 584, in _get_font
font = FT2Font(str(basename))
RuntimeError: Could not open facefile C:/non/ascii/path/to/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannot_Open_Resource
Note that this is specific to Windows (I wasn't able to reproduce the issue by creating a virtualenv on Linux) and to non-ascii paths (changing the path solved the issue).
Activity
tacaswell commentedon Jun 25, 2014
what version of mpl and python are you using? This smells like a unicode issue or a bug in windows to me.
anntzer commentedon Jun 25, 2014
Python 3.4, matplotlib 1.3.1. I think that this may be related to #2431, but it would be a bit tricky for me to check this.
tacaswell commentedon Jun 25, 2014
One of the window devs will need to test this on master (or if you are feeling brave can you build mpl?).
anntzer commentedon Jun 25, 2014
Yes, that's exactly why I said "tricky"...
anntzer commentedon Nov 13, 2014
I think the issue has been solved in 1.4.
tacaswell commentedon Nov 13, 2014
Which 1.4.x?
anntzer commentedon Nov 13, 2014
At least 1.4.{1,2}
tacaswell commentedon Nov 13, 2014
I am going to close this as a) we fixed a lot of unicode issues and b) @anntzer thinks it is fixed