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

2014-01-16 Thread Josef K
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 _rebuildfontManager = 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 createFontListprop = ttfFontProperty(font)  File
C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
line 398, in ttfFontPropertysfnt4 =
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
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

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

2014-01-16 Thread Josef K
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.
regards
Josef

2014/1/16 Josef K groundwater...@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 _rebuildfontManager = 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 createFontListprop = ttfFontProperty(font)   File
 C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib\font_manager.py,
 line 398, in ttfFontPropertysfnt4 =
 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

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer