RuntimeError: _image_module

Hi all,

Any pointer to resolve the problem within ding.py (see attachment) would be appreciated.

I am using
>>> matplotlib.__version__
'0.84cvs'

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py", line 311, in expose_event
    self._render_figure(self._pixmap, w, h)
  File "/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py", line 70, in _render_figure
    FigureCanvasAgg.draw(self)
  File "/usr/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line 381, in draw
    self.figure.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/figure.py", line 511, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/axes.py", line 1389, in draw
    self.xaxis.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/axis.py", line 552, in draw
    tick.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/axis.py", line 151, in draw
    if self.label1On: self.label1.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/text.py", line 848, in draw
    self._mytext.draw(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/text.py", line 335, in draw
    bbox, info = self._get_layout(renderer)
  File "/usr/lib/python2.3/site-packages/matplotlib/text.py", line 184, in _get_layout
    w,h = renderer.get_text_width_height(
  File "/usr/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line 241, in get_text_width_height
    Z = self.texmanager.get_rgba(s, size, dpi, rgb)
  File "/usr/lib/python2.3/site-packages/matplotlib/texmanager.py", line 298, in get_rgba
    X = readpng(pngfile)
RuntimeError: _image_module::readpng could not open PNG file /home/nwagner/.matplotlib/tex.cache/2c6e169d72c80df1858b02af79bf8864_96.png for reading

Nils

ding.py (1.42 KB)