<div dir="ltr">I recently reinstalled QGIS 2.0 and 2.1 from the OSGeo4W advanced install. <div style>Now I get some ascii errors when importing some matplotlib modules. I have narrowed it down to the import of matplotlib.fontmanager:</div>
<div style><br></div><div style><i><div>import matplotlib.font_manager</div><div>Traceback (most recent call last):</div><div>  File "<input>", line 1, in <module></div><div>  File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 453, in _import</div>
<div>    mod = _builtin_import(name, globals, locals, fromlist, level)</div><div>  File "C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py", line 1356, in <module></div><div>    _rebuild()</div>
<div>  File "C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py", line 1341, in _rebuild</div><div>    fontManager = FontManager()</div><div>  File "C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py", line 1004, in __init__</div>
<div>    self.ttflist = createFontList(self.ttffiles)</div><div>  File "C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py", line 584, in createFontList</div><div>    prop = ttfFontProperty(font)</div>
<div>  File "C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py", line 398, in ttfFontProperty</div><div>    sfnt4 = sfnt4.decode('ascii').lower()</div><div>UnicodeDecodeError: 'ascii' codec can't decode byte 0x8a in position 14: ordinal not in range(128)</div>
</i></div><div style><i><br></i></div><div style><div style>I have tried to reinstall matplotlib (from OSGEo4w 64-bit). No difference.  </div><div style><br></div><div style>Any ideas?</div><div style><br></div><div style>
regards</div><div style>Josef</div></div></div>