<div dir="ltr">OK, somehow the problem is fixed. I really do not know what happened and why it starts working but along the way I tried removing the .matplotlib folder in my user local settings. I also tried a fresh QGIS install from the 64-bit standalone installer (2.0.1-3) and then the same from the 32-bit standalone installer. Matplotlib was OK again after the 32-bit install, even _after_ I uninstalled the 32-bit version.<div>
regards<br><div>Josef</div><div><div class="gmail_extra"><br><div class="gmail_quote">2014/1/16 Josef K <span dir="ltr"><<a href="mailto:groundwatergis@gmail.com" target="_blank">groundwatergis@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">

I recently reinstalled QGIS 2.0 and 2.1 from the OSGeo4W advanced install. <div>Now I get some ascii errors when importing some matplotlib modules. I have narrowed it down to the import of matplotlib.fontmanager:</div>
<div><br></div><div><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><i><br></i></div><div><div>I have tried to reinstall matplotlib (from OSGEo4w 64-bit). No difference.  </div><div><br></div><div>Any ideas?</div><div><br></div><div>
regards</div><span><font color="#888888"><div>Josef</div></font></span></div></div></blockquote></div></div></div></div></div>