Yes, because dvipng - version works fine.

On 5/11/07, Darren Dale <[EMAIL PROTECTED]> wrote:
> Is dvipng on your path?
>
> On Friday 11 May 2007 05:16:04 pm Michele Mazzucco wrote:
> > Hi all,
> >
> > I'm running matplotlib on Mac OS X and I've set text.usetex to True in
> > matplotlibrc, but if I try to run the tex_demo I get the error shown
> > below. If I'm right it's a problem with dvipng:
> >
> > dvipng -version
> > This is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
> > dvipng 1.6
> > 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.
> >
> >
> > Any idea?
> >
> > Thanks,
> > Michele
> >
> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packag
> >es/matplotlib/__init__.py:959: UserWarning: Bad val "true" on line #123
> >       "text.usetex         : true  # use latex for all text handling.  For
> > more information, see"
> >       in file
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/mpl-data/matplotlibrc" 'NoneType' object has no attribute
> > 'group'
> >   val, cnt, line, fname, msg))
> > Traceback (most recent call last):
> >   File "/Users/nmm42/devel/workspace/PythonPlots/src/examples/tex_demo.py",
> > line 31, in <module>
> >     savefig('tex_demo')
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/pylab.py", line 796, in savefig
> >     return fig.savefig(*args, **kwargs)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/figure.py", line 727, in savefig
> >     self.canvas.print_figure(*args, **kwargs)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/backends/backend_tkagg.py", line 187, in print_figure
> >     **kwargs)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/backends/backend_agg.py", line 456, in print_figure
> >     self.draw()
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/backends/backend_agg.py", line 392, in draw
> >     self.figure.draw(renderer)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/figure.py", line 569, in draw
> >     for a in self.axes: a.draw(renderer)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/axes.py", line 1155, in draw
> >     a.draw(renderer)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/axis.py", line 591, in draw
> >     tick.draw(renderer)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/axis.py", line 175, in draw
> >     if self.label1On: self.label1.draw(renderer)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/text.py", line 902, in draw
> >     Text.draw(self, renderer)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/text.py", line 400, in draw
> >     bbox, info = self._get_layout(renderer)
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/text.py", line 246, in _get_layout
> >     line, self._fontproperties, ismath=self.is_math_text())
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/backends/backend_agg.py", line 239, in get_text_width_height
> >     texmanager = self.get_texmanager()
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/backend_bases.py", line 415, in get_texmanager
> >     from matplotlib.texmanager import TexManager
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/texmanager.py", line 61, in <module>
> >     class TexManager:
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/texmanager.py", line 83, in TexManager
> >     dvipngVersion = get_dvipng_version()
> >   File
> > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packa
> >ges/matplotlib/texmanager.py", line 58, in get_dvipng_version
> >     raise RuntimeError('Could not obtain dvipng version')
> > RuntimeError: Could not obtain dvipng version
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
> --
> Darren S. Dale, Ph.D.
> Staff Scientist
> Cornell High Energy Synchrotron Source
> Cornell University
> 275 Wilson Lab
> Rt. 366 & Pine Tree Road
> Ithaca, NY 14853
>
> [EMAIL PROTECTED]
> office: (607) 255-3819
> fax: (607) 255-9001
> http://www.chess.cornell.edu
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to