Please try changing line 191 in texmanager.py from this:

command = 'cd %s; latex -interaction=nonstopmode "%s"'\

to this:

command = 'cd "%s"; latex -interaction=nonstopmode "%s"'\

Also, backens/backend_ps.py line 1274 needs to be changed:

command = 'cd "%s"; latex -interaction=nonstopmode "%s"'%(gettempdir(), 
latexfile)

as does line 1287:

command = 'cd "%s"; dvips -o "%s" "%s"' % (gettempdir(), psfile, dvifile)

These changes are in svn 2465. Sorry for the trouble.

Darren


On Sunday 11 June 2006 12:45, Wolfgang wrote:
> Hi,
>
> there is no output from latex produced as it can't find the file!
>
> But here is the verbose error output (my python file is called tex.py,
> the content is listed in my last message):
>
> D:\temp\py_plotlib>tex.py --verbose-debug-annoying
> matplotlib data path
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.
> 3-py2.4-win32.egg\matplotlib\mpl-data
> $HOME=C:\Documents and Settings\s0167070
> CONFIGDIR=C:\Documents and Settings\s0167070\.matplotlib
> loaded rc file
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.
> 4-win32.egg\matplotlib\mpl-data\matplotlibrc
> matplotlib version 0.87.3
> verbose.level debug-annoying
> interactive is False
> platform is win32
> loaded modules: ['_bisect', 'distutils', 'random', 'datetime',
> 'matplotlib.tempf
> ile', 'distutils.sysconfig', 'pytz.datetime', 'distutils.dep_util',
> 'tempfile',
> 'imp', 'zipimport', 'string', 'matplotlib.__future__', 'pytz.tzinfo',
> 'distutils
> .re', 'bisect', 'signal', 'matplotlib.pytz', 'distutils.log', 'locale',
> 'encodin
> gs', 'dateutil', 'matplotlib.warnings', 'matplotlib.sys', 're',
> 'ntpath', 'new',
>   'math', 'UserDict', 'distutils.os', 'matplotlib', 'codecs', 'md5',
> '_locale', '
> matplotlib.os', 'thread', 'sre', 'pkg_resources', 'itertools',
> 'distutils.spawn'
> , 'distutils.sys', 'os', '__future__', '_sre', '__builtin__',
> 'matplotlib.re', '
> distutils.util', 'distutils.string', 'matplotlib.datetime', 'errno',
> 'binascii',
>   'sre_constants', 'matplotlib.md5', 'types', 'pytz.sys', '_codecs',
> 'encodings.c
> p1252', 'pytz', 'matplotlib.dateutil', 'encodings.aliases',
> 'exceptions', 'sre_p
> arse', 'pytz.bisect', 'distutils.distutils', 'copy_reg', 'sre_compile',
> '_random
> ', 'site', '__main__', 'shutil', 'strop', 'encodings.codecs',
> 'encodings.excepti
> ons', 'nt', 'pytz.sets', 'stat', 'matplotlib.toolkits', 'warnings',
> 'encodings.t
> ypes', 'time', 'sys', 'os.path', 'matplotlib.distutils',
> 'distutils.errors', 'li
> necache', 'matplotlib.shutil', 'sets']
> numerix Numeric 24.2
> font search path
> ['D:\\Programme\\Python2.4.3\\lib\\site-packages\\matplotlib-0.
> 87.3-py2.4-win32.egg\\matplotlib\\mpl-data']
> trying fontname
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
> .4-win32.egg\matplotlib\mpl-data\VeraIt.ttf
> trying fontname
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
> .4-win32.egg\matplotlib\mpl-data\VeraMoIt.ttf
> trying fontname
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
> .4-win32.egg\matplotlib\mpl-data\cmsy10.ttf
> trying fontname
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
> .4-win32.egg\matplotlib\mpl-data\VeraMono.ttf
> trying fontname
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
> .4-win32.egg\matplotlib\mpl-data\VeraBI.ttf
> trying fontname
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
> .4-win32.egg\matplotlib\mpl-data\VeraSe.ttf
> trying fontname
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
> .4-win32.egg\matplotlib\mpl-data\VeraMoBI.ttf
> trying fontname
> D:\Programme\Python2.4.3\lib\site-packages\matplotlib-0.87.3-py2
> .4-win32.egg\matplotlib\mpl-data\Vera.ttf
> loaded ttfcache file C:\Documents and
> Settings\s0167070\.matplotlib\ttffont.cach
> e
> backend TkAgg version 8.4
> FigureCanvasAgg.print_figure
> FigureCanvasAgg.draw
> RendererAgg.__init__
> RendererAgg.__init__ width=800.0,                         height=600.0
> RendererAgg.__init__ _RendererAgg done
> RendererAgg.__init__ done
> RendererAgg._get_agg_font
>          findfont failed Lucida Grande
>          findfont found Verdana, normal, normal 500, normal, 12.0
> findfont returning c:\windows\fonts\verdana.ttf
> cd c:\docume~1\s0167070\locals~1\temp; latex -interaction=nonstopmode
> "3bb1bc571
> 00b0c65915bdda3a1f60dae.tex"
> Traceback (most recent call last):
>    File "D:\temp\py_plotlib\tex.py", line 16, in ?
>      savefig('tex_demo')
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\pylab.py", line 811, in savefig
>      return fig.savefig(*args, **kwargs)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\figure.py", line 660, in savefig
>      self.canvas.print_figure(*args, **kwargs)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\backends\backend_tkagg.py", line 184, in print_figure
>      agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\backends\backend_agg.py", line 452, in print_figure
>      self.draw()
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\backends\backend_agg.py", line 389, in draw
>      self.figure.draw(renderer)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\figure.py", line 531, in draw
>      for a in self.axes: a.draw(renderer)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\axes.py", line 1034, in draw
>      a.draw(renderer)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\axis.py", line 561, in draw
>      tick.draw(renderer)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\axis.py", line 161, in draw
>      if self.label1On: self.label1.draw(renderer)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\text.py", line 1167, in draw
>      Text.draw(self, renderer)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\text.py", line 339, in draw
>      bbox, info = self._get_layout(renderer)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\text.py", line 186, in _get_layout
>      w,h = renderer.get_text_width_height(
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\backends\backend_agg.py", line 239, in
> get_text_width_height Z = texmanager.get_rgba(s, size, self.dpi.get(), rgb)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\texmanager.py", line 401, in get_rgba
>      pngfile = self.make_png(tex, fontsize, dpi, force=False)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\texmanager.py", line 227, in make_png
>      dvifile = self.make_dvi(tex, fontsize)
>    File
> "d:\programme\python2.4.3\lib\site-packages\matplotlib-0.87.3-py2.4-win32
> .egg\matplotlib\texmanager.py", line 197, in make_dvi
>      if exit_status: raise RuntimeError('LaTeX was not able to process \
> RuntimeError: LaTeX was not able to process the flowing string:
> 0.0
> Here is the full report generated by LaTeX:
>
> The system cannot find the path specified.
>
>
>
> Hope that someone has a clue about whats going wrong here!
>
> Thanks
> Wolfgang
>
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- 
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853

[EMAIL PROTECTED]
office: (607) 255-9894
fax: (607) 255-9001


_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to