Rich Shepard <[EMAIL PROTECTED]> writes:

> On Tue, 11 Mar 2008, Michael Droettboom wrote:
>> 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.

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-------------------------------------------------------------------------
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