[Python-modules-team] Bug#719065: mnemosyne: Fails at startup to error from python-matplotlib.

darkestkhan darkestkhan at gmail.com
Sun Aug 11 12:40:45 UTC 2013


On Sun, 11 Aug 2013 12:16:02 +0200,  Julian Taylor
<jtaylor.debian at googlemail.com> wrote:
> most likely it can be fixed by deleting ~/.matplotlib/fontList.cache
> but before you do so please make a backup and mail it to the bug, because I
> can't reproduce the issue locally.

I deleted this file and tried running mnemosyne with python-matplotlib
1.3.0-1 and this resulted in exactly same error as before. But then
after downgrade to 1.1.1~rc2-1 I got different error:

"
$ mnemosyne
Value error parsing header in AFM: ItalicAngle -15,5
An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 155, in <module>
    debug_file=options.debug_file)
  File "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/__init__.py",
line 164, in initialise
    self.register_components()
  File "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/__init__.py",
line 215, in register_components
    exec("from %s import %s" % (module_name, class_name))
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/mnemosyne/pyqt_ui/statistics_wdgts_plotting.py",
line 8, in <module>
    from matplotlib.figure import Figure
  File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 18, in <module>
    from axes import Axes, SubplotBase, subplot_class_factory
  File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 14, in <module>
    import matplotlib.axis as maxis
  File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 10, in <module>
    import matplotlib.font_manager as font_manager
  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'
"

This seems to be  very similar (if not identical) to the one reported
in the #691916.
Unfortunately (for me) mnemosyne actually depends on python-matplotlib
so removing it won't fix my problem.

-- 

darkestkhan
------------------------------------------
Feel free to CC me.
jid: darkestkhan at gmail.com
May The Source be with You.



More information about the Python-modules-team mailing list