[Python-modules-team] Bug#691916: Bug#691916: python-matplotlib crashes (KeyError: 'ItalicAngle')
Sandro Tosi
morph at debian.org
Fri Nov 9 19:02:23 UTC 2012
Hello Damyan,
On Wed, Oct 31, 2012 at 11:27 AM, Damyan Ivanov <dmn at debian.org> wrote:
> Value error parsing header in AFM: ItalicAngle -9,9
> Value error parsing header in AFM: ItalicAngle -9,9
are these 2 lines generated by rst2pdf or by mpl crashing?
> Traceback (most recent call last):
> File "/usr/bin/rst2pdf", line 9, in <module>
> load_entry_point('rst2pdf==0.16', 'console_scripts', 'rst2pdf')()
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
> return get_distribution(dist).load_entry_point(group, name)
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
> return ep.load()
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
> entry = __import__(self.module_name, globals(),globals(), ['__name__'])
> File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 45, in <module>
> from opt_imports import psyco
> File "/usr/lib/pymodules/python2.7/rst2pdf/opt_imports.py", line 78, in <module>
> from matplotlib import mathtext
> File "/usr/lib/pymodules/python2.7/matplotlib/mathtext.py", line 44, in <module>
> from matplotlib.font_manager import findfont, FontProperties
> File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1325, in <module>
> _rebuild()
> File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1275, in _rebuild
> fontManager = FontManager()
> File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 999, in __init__
> self.afmlist = createFontList(self.afmfiles, fontext='afm')
> File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 567, in createFontList
> prop = afmFontProperty(fpath, font)
> File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 484, in afmFontProperty
> if font.get_angle() != 0 or name.lower().find('italic') >= 0:
> File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 468, in get_angle
> return self._header['ItalicAngle']
> KeyError: 'ItalicAngle'
are you able to replicate it with the experimental version?
> Perhaps this is caused by a font with strange metrics. Any idea how to identify
> it?
I'll dig it deeper once I know if 1.2.0 fixes it or not.
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
More information about the Python-modules-team
mailing list