> c:\python24\lib\site-packages\matplotlib\texmanager.py(250)make_png()
-> raise RuntimeError('dvipng was not able to \
(Pdb) l
245 process = Popen([command], shell=True, stdin=PIPE,
stdout=PI PE,
246 stderr=STDOUT)
247 exit_status = process.wait()
248 if exit_status:
249 pdb.set_trace()
250 -> raise RuntimeError('dvipng was not able to \
251 process the flowing file:\n%s\nHere is the full report generated by
dvip ng: \
252 \n\n'% dvifile + process.stdout.read())
253 else: verbose.report(process.stdout.read(), 'debug')
254 ## stdin, stdout, stderr = os.popen3(command)
255 ## verbose.report(stdout.read(), 'debug-annoying')
(Pdb) command
Out[4]: 'dvipng -bg Transparent -D "80.0" -T tight -o "C:\\Documents and
Setting s\\Ryan
Krauss\\.matplotlib\\tex.cache\\c1ffe2d853f127e5a2d2d1596af6476a.png" "C
:\\Documents and Settings\\Ryan
: Krauss\\.matplotlib\\tex.cache\\3c0a8beb4aca9ed9
ba6656bce72309e6.dvi"'
(Pdb) process.stdout.read()
Out[4]: 'This is dvipng 1.6 Copyright 2002-2005 Jan-Ake
Larsson\r\n\r\ndvipng: F atal error, bad -D parameter\r\n\r\n'
(Pdb)
But if I execute the command myself in a dos shell, I get no problems:
C:\Documents and Settings\Ryan Krauss\.matplotlib\tex.cache>dvipng -bg
Transpare nt -D "80.0" -T tight -o "C:\\Documents and Settings\\Ryan
Krauss\\.matplotlib\\ tex.cache\\c1ffe2d853f127e5a2d2d1596af6476a.png"
"C:\\Documents and Settings\\Ry an
Krauss\\.matplotlib\\tex.cache\\3c0a8beb4aca9ed9ba6656bce72309e6.dvi" This
is dvipng 1.6 Copyright 2002-2005 Jan-Ake Larsson
[1]
Ryan
On 5/2/06, Ryan Krauss <ryanlists@...287...> wrote:
> I found a thread about a recent fix to texmanager and backend_ps, but
> I am still having a problem. It seems like the basic problem is that
> os.system('cd c:\\temp') doesn't seem to work on windows:
>
> C:\Documents and Settings>python
> Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on
> win32 Type "help", "copyright", "credits" or "license" for more
> information.
>
> >>> import os
> >>> os.system('cd c:\\temp')
>
> 0
>
> >>> os.getcwd()
>
> 'C:\\Documents and Settings'
>
>
> So, when texmanager tries to execute this command:
> (Pdb) command
> Out[3]: 'cd c:\\temp; latex -interaction=nonstopmode
> "92ef4637f8938ad7ee6f05b388 9c7251.tex"'
>
> latex can't find the file because the working directory doesn't seem
> to actually change.
>
> (This is in texmanager.py around line 200).
>
> Ryan
>
> On 5/2/06, Ryan Krauss <ryanlists@...287...> wrote:
> > I am getting the following error from usetex under windows:
> >
> > Exception in Tkinter callback
> > Traceback (most recent call last):
> > File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__
> > return self.func(*args)
> > File
> > "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py",
> > lin e 148, in resize
> > self.show()
> > File
> > "C:\Python24\Lib\site-packages\matplotlib\backends\backend_tkagg.py",
> > lin e 151, in draw
> > FigureCanvasAgg.draw(self)
> > File
> > "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py",
> > line 398, in draw
> > self.figure.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\figure.py", line 529,
> > in draw for a in self.axes: a.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\axes.py", line 1465,
> > in draw self.xaxis.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\axis.py", line 562, 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 858, in
> > draw self._mytext.draw(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 338, in
> > draw bbox, info = self._get_layout(renderer)
> > File "C:\Python24\Lib\site-packages\matplotlib\text.py", line 186, in
> > _get_lay out
> > w,h = renderer.get_text_width_height(
> > File
> > "C:\Python24\Lib\site-packages\matplotlib\backends\backend_agg.py",
> > line 249, in get_text_width_height
> > Z = self.texmanager.get_rgba(s, size, self.dpi.get(), rgb)
> > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line
> > 380, in ge t_rgba
> > pngfile = self.make_png(tex, fontsize, dpi, force=False)
> > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line
> > 209, in ma ke_png
> > dvifile = self.make_dvi(tex, fontsize)
> > File "C:\Python24\Lib\site-packages\matplotlib\texmanager.py", line
> > 190, in ma ke_dvi
> > stdout=PIPE, close_fds=True)
> > File "C:\Python24\lib\subprocess.py", line 500, in __init__
> > raise ValueError("close_fds is not supported on Windows "
> > ValueError: close_fds is not supported on Windows platforms
> >
> > Please help me.
> >
> > Thanks,
> >
> > Ryan
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options