[osgeo4w-dev] [osgeo4w] #389: Matplotlib issue causing crash in ProfileTool plugin. "UnicodeDecodeError?: 'ascii' codec can't decode byte 0x8e in position 8: ordinal not in range(128) "

OSGeo4W trac_osgeo4w at osgeo.org
Mon Nov 4 11:22:11 PST 2013


#389: Matplotlib issue causing crash in ProfileTool plugin. "UnicodeDecodeError?:
'ascii' codec can't decode byte 0x8e in position 8: ordinal not in
range(128) "
---------------------------+------------------------------------------------
Reporter:  nicolascadieux  |       Owner:  osgeo4w-dev@…              
    Type:  defect          |      Status:  new                        
Priority:  major           |   Component:  Package                    
 Version:                  |    Keywords:  Matplotlib                 
---------------------------+------------------------------------------------
 Issue #8953 has been updated by Etienne Tourigny:

 "This seems to be a matplotlib issue in your osgeo4w install. Does not
 happen in linux. Please try this in the QGIS python console (which works
 fine in linux):

 from matplotlib.figure import Figure

 Traceback (most recent call last):
   File "<input>", line 1, in <module>
   File "C:/OSGEO4~1/apps/qgis/./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\figure.py",
 line 34, in <module>
     import matplotlib.colorbar as cbar
   File "C:/OSGEO4~1/apps/qgis/./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\colorbar.py", line 29, in <module>
     import matplotlib.collections as collections
   File "C:/OSGEO4~1/apps/qgis/./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\collections.py", line 23, in <module>
     import matplotlib.backend_bases as backend_bases
   File "C:/OSGEO4~1/apps/qgis/./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\backend_bases.py", line 50, in <module>
     import matplotlib.textpath as textpath
   File "C:/OSGEO4~1/apps/qgis/./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\textpath.py", line 11, in <module>
     import matplotlib.font_manager as font_manager
   File "C:/OSGEO4~1/apps/qgis/./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 0x8e in position 8:
 ordinal not in range(128)

 see http://hub.qgis.org/issues/8953

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/389>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list