[Qgis-developer] matplotlib ascii errors when using OSGeo4W install

Josef K groundwatergis at gmail.com
Thu Jan 16 03:45:53 PST 2014

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.

2014/1/16 Josef K <groundwatergis at gmail.com>

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

More information about the Qgis-developer mailing list