Major Issue with 0.91.2 and Python-2.5

Rich Shepard <rshepard@...695...> writes:

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.

I'm not sure that I know which font file is the problem.

[...]

   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

Try this to debug the problem:

python -i your-script.py
(wait for the traceback)

from pdb import pm
pm()

(Pdb) p vals
(Pdb) up
(Pdb) p fh

The command "p fh" should show the name of the font file. You can exit
the debugger with Ctrl-D, or type "help" to see all the commands if you
wish to explore the problem further.

You need to write the "from pdb import pm" and "pm()" lines carefully,
because if any typo causes another traceback, the previous one is
forgotten.

···

On Tue, 11 Mar 2008, Michael Droettboom wrote:

--
Jouni K. Seppänen