Matplotlib已停止工作并发出一个很长的错误......有什么建议吗?

时间:2014-11-24 17:30:44

标签: python numpy matplotlib

我一直在尝试以不同的方式安装numpy / scipy并确保我有lapack / blas支持但不知何故设法搞砸了所以现在当我做一个简单的情节它不起作用我需要输入+ c中断然后得到这个冗长的错误消息。任何修复的想法?我已经安装和卸载了几次python / numpy / scipy / matplotlib,但是没有用。

我在Ubuntu 14.04上

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1489, in __call__
    return self.func(*args)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 536, in callit
    func(*args)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 363, in idle_draw
    self.draw()
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 348, in draw
    FigureCanvasAgg.draw(self)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 451, in draw
    self.figure.draw(self.renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1034, in draw
    func(*args)
  File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 2086, in draw
    a.draw(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 1093, in draw
    renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 1042, in _get_tick_bboxes
    extent = tick.label1.get_window_extent(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/text.py", line 754, in get_window_extent
    bbox, info, descent = self._get_layout(self._renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/text.py", line 320, in _get_layout
    ismath=False)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 214, in get_text_width_height_descent
    font = self._get_agg_font(prop)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 258, in _get_agg_font
    fname = findfont(prop)
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1362, in findfont
    font = fontManager.findfont(prop, **kw)
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1258, in findfont
    _rebuild()
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1341, in _rebuild
    fontManager = FontManager()
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1004, in __init__
    self.ttflist = createFontList(self.ttffiles)
  File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 575, in createFontList
    font = ft2font.FT2Font(str(fpath))
KeyboardInterrupt

    Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1484, in __call__
    def __call__(self, *args):
KeyboardInterrupt

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

编辑:

引发错误的代码是:

from matplotlib import pyplot as plt
plt.ion()
plt.plot(range(10))
# window doesn't show anything hangs, I end up typing <ctrl>+c and then the error appears

0 个答案:

没有答案