After upgrading to matplotlib 1.3.1-1 importing matplotlib.pyplot fails
with the error:

Python 2.7.5+ (default, Sep 17 2013, 15:31:50)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot
Found an unknown keyword in AFM header (was Each)
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was Each)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was Each)
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was Each)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was The)
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
Traceback (most recent call last):

  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 24, in
<module>
    import matplotlib.colorbar
  File "/usr/lib/pymodules/python2.7/matplotlib/colorbar.py", line 29, in
<module>
    import matplotlib.collections as collections
  File "/usr/lib/pymodules/python2.7/matplotlib/collections.py", line 23,
in <module>
    import matplotlib.backend_bases as backend_bases
  File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 50,
in <module>
    import matplotlib.textpath as textpath
  File "/usr/lib/pymodules/python2.7/matplotlib/textpath.py", line 11, in
<module>
    import matplotlib.font_manager as font_manager
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line
1356, in <module>
    _rebuild()
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line
1341, in _rebuild
    fontManager = FontManager()
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line
1008, in __init__
    self.afmlist = createFontList(self.afmfiles, fontext='afm')
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 563,
in createFontList
    font = afm.AFM(fh)
  File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 342, in
__init__
    parse_afm(fh)
  File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 331, in
parse_afm
    doptional = _parse_optional(fh)
  File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 313, in
_parse_optional
    d[key] = optional[key](fh)
  File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 246, in
_parse_kern_pairs
    c1, c2, val = _to_str(vals[1]), _to_str(vals[2]), _to_float(vals[3])
ValueError: could not convert string to float: -'0

The problem is with the Adobe Font Metric. Has anyone run into this problem
and found a solution or workaround? Any help is greatly appreciated.

My system is Debian testing with Python 2.7.5 and NumPy 1.7.1-3.

Thanks,
--
Ivan Lima
Woods Hole Oceanographic Institution, MC&G MS #25
360 Woods Hole Road, Woods Hole, MA 02543-1543 USA
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to