dvipng version error

Hello:
I am getting an identical error to the error encountered by Charlie Moad
(posted Apr 10, 2006; 08:46am). I am running Python 2.4.4 (#71, Oct 18
2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32 with Matplotlib v
0.87.7. my system is:

XP home, SP2 on a Dell XPS600, Dual Core P4 3.40GHz, 1 GB RAM

the error thread is exactly the same:

Traceback (most recent call last):
  File "C:\Python24\test.py", line 33, in -toplevel-
    pylab.savefig(filename)#,dpi=100)
  File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 813, in
savefig
    return fig.savefig(*args, **kwargs)
  File "C:\Python24\Lib\site-packages\matplotlib\figure.py", line 682, in
savefig
    self.canvas.print_figure(*args, **kwargs)
  File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py",
line 456, in print_figure
    self.draw()
  File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py",
line 392, in draw
    self.figure.draw(renderer)
  File "C:\Python24\Lib\site-packages\matplotlib\figure.py", line 544, in
draw
    for a in self.axes: a.draw(renderer)
  File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 1063, in draw
    a.draw(renderer)
  File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 561, in draw
    tick.draw(renderer)
  File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 161, in draw
    if self.label1On: self.label1.draw(renderer)
  File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 838, in draw
    Text.draw(self, renderer)
  File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 340, in draw
    bbox, info = self._get_layout(renderer)
  File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 187, in
_get_layout
    w,h = renderer.get_text_width_height(
  File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py",
line 239, in get_text_width_height
    texmanager = self.get_texmanager()
  File "C:\Python24\Lib\site-packages\matplotlib\backend_bases.py", line
413, in get_texmanager
    from matplotlib.texmanager import TexManager
  File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 61,
in -toplevel-
    class TexManager:
  File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 83,
in TexManager
    dvipngVersion = get_dvipng_version()
  File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 58,
in get_dvipng_version
    raise RuntimeError('Could not obtain dvipng version')
RuntimeError: Could not obtain dvipng version

I saw in the message thread that a fix was committed, is this universal?

many thanks,
bernard

Hello:
I am getting an identical error to the error encountered by Charlie Moad
(posted Apr 10, 2006; 08:46am). I am running Python 2.4.4 (#71, Oct 18
2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32 with Matplotlib v
0.87.7. my system is:

XP home, SP2 on a Dell XPS600, Dual Core P4 3.40GHz, 1 GB RAM

the error thread is exactly the same:

[...]

  File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 83,
in TexManager
    dvipngVersion = get_dvipng_version()
  File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line 58,
in get_dvipng_version
    raise RuntimeError('Could not obtain dvipng version')
RuntimeError: Could not obtain dvipng version

I saw in the message thread that a fix was committed, is this universal?

I think what you are seeing is not exactly the same what Charlie reported.
Charlie observed that texmanager was being loaded, and the dvipng version
checked, when he had usetex : False in his rc options. dvipng is only
required by usetex, and therefore should not have been checked. The fix from
April 2006 fixed that problem. If you have usetex : False in your rc options,
and are still getting this dvipng version error, then it is a bug and I need
to investigate.

However, I suspect that you have set usetex : True in your rc settings, but
haven't installed all the required dependencies. Do you have dvipng
installed, and is it on your PATH? If so, opening a DOS window and
running "dvipng --version" should yield something like:

This is dvipng 1.8 Copyright 2002-2006 Jan-Ake Larsson
dvipng 1.8
kpathsea version 3.5.5
Copyright (C) 2002-2005 Jan-Ake Larsson.
There is NO warranty. You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files
named COPYING and dvipng.c.

Darren

···

On Monday 15 January 2007 23:37, bern@...497... wrote: