On Tue, 11 Mar 2008, Michael Droettboom wrote:

> I suspect there is an .afm font file on your new system that is untested with 
> matplotlib and exhibiting something "new".
>
> I would first try to track down which font file it is, and then send it to me 
> off list and I'll have a look at what might be tripping up matplotlib.

Mike,

   I'm not sure that I know which font file is the problem. Here's the output
from trying to run my application on python-2.5 (the top two lines are
repeated many times before we get to the traceback):

Found an unknown keyword in AFM header (was Underline)
Found an unknown keyword in AFM header (was Underline)
Traceback (most recent call last):
   File "eikos.py", line 3, in <module>
     import wx, serial, os, config, functions
   File "/home/rshepard/projects/eikos/functions.py", line 7, in <module>
     import pylab as p
   File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
     from matplotlib.pylab import *
   File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 208, in 
<module>
     from matplotlib import mpl  # pulls in most modules
   File "/usr/lib/python2.5/site-packages/matplotlib/mpl.py", line 3, in 
<module>
     from matplotlib import axis
   File "/usr/lib/python2.5/site-packages/matplotlib/axis.py", line 20, in 
<module>
     from font_manager import FontProperties
   File "/usr/lib/python2.5/site-packages/matplotlib/font_manager.py", line 
1132, in <module>
     _rebuild()
   File "/usr/lib/python2.5/site-packages/matplotlib/font_manager.py", line 
1123, in _rebuild
     fontManager = FontManager()
   File "/usr/lib/python2.5/site-packages/matplotlib/font_manager.py", line 
913, in __init__
     self.afmdict = createFontDict(self.afmfiles, fontext='afm')
   File "/usr/lib/python2.5/site-packages/matplotlib/font_manager.py", line 
512, in createFontDict
     font = afm.AFM(fh)
   File "/usr/lib/python2.5/site-packages/matplotlib/afm.py", line 294, in 
__init__
     parse_afm(fh)
   File "/usr/lib/python2.5/site-packages/matplotlib/afm.py", line 282, in 
parse_afm
     dcmetrics_ascii, dcmetrics_name = _parse_char_metrics(fh)
   File "/usr/lib/python2.5/site-packages/matplotlib/afm.py", line 166, in 
_parse_char_metrics
     name = vals[2].split()[1]
IndexError: list index out of range

   If it's relevant to the issue, I no longer have ~/.matplotlib/fonts.cache as 
someone
suggested yesterday that I delete it, and it's not been regenerated.

Thanks,

Rich

-- 
Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to