bug introduced in 0.87.3: subprocess error while saving eps

Sorry to bother you again, but I recently upgraded from 0.87.2 to 0.87.3, and
cannot save eps files anymore. I get a ‘subprocess’ error.
I am running Python 2.3, mpl 0.87.3, and TkAgg (although that shouldn’t matter).

Error occurs whether using toolbar or savefig to save.
Here’s the script and the errror. Has this been fixed in svn?

from pylab import *
plot([1,2,3])
[<matplotlib.lines.Line2D
instance at 0x01B50418>]

savefig(‘c:/temp/test.eps’)
Traceback (most recent call last):
File “<pyshell#2>”, line 1, in ?
savefig(‘c:/temp/test.eps’)
File “C:\Python23\Lib\site-packages\matplotlib\pylab.py”, line 811, in savefig

return fig.savefig(*args, **kwargs)

File “C:\Python23\Lib\site-packages\matplotlib\figure.py”, line 660, in savefig
self.canvas.print_figure(*args, **kwargs)
File “C:\Python23\Lib\site-packages\matplotlib\backends\backend_tkagg.py”, line 184, in print_figure

agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,

File “C:\Python23\Lib\site-packages\matplotlib\backends\backend_agg.py”, line 481, in print_figure
from backend_ps import FigureCanvasPS # lazy import

File “C:\Python23\Lib\site-packages\matplotlib\backends\backend_ps.py”, line 10, in ?
from subprocess import Popen, STDOUT, PIPE
ImportError: No module named subprocess

Yes, this has been fixed.

Mark Bakker wrote:

···

Sorry to bother you again, but I recently upgraded from 0.87.2 to 0.87.3, and
cannot save eps files anymore. I get a 'subprocess' error.
I am running Python 2.3, mpl 0.87.3, and TkAgg (although that shouldn't matter).
Error occurs whether using toolbar or savefig to save.
Here's the script and the errror. Has this been fixed in svn?

>>> from pylab import *
>>> plot([1,2,3])
[<matplotlib.lines.Line2D instance at 0x01B50418>]
>>> savefig('c:/temp/test.eps')
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in ?
    savefig('c:/temp/test.eps')
  File "C:\Python23\Lib\site-packages\matplotlib\pylab.py", line 811, in savefig
    return fig.savefig(*args, **kwargs)
  File "C:\Python23\Lib\site-packages\matplotlib\figure.py", line 660, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "C:\Python23\Lib\site-packages\matplotlib\backends\backend_tkagg.py", line 184, in print_figure
    agg.print_figure(filename, dpi, facecolor, edgecolor, orientation,
  File "C:\Python23\Lib\site-packages\matplotlib\backends\backend_agg.py", line 481, in print_figure
    from backend_ps import FigureCanvasPS # lazy import
  File "C:\Python23\Lib\site-packages\matplotlib\backends\backend_ps.py", line 10, in ?
    from subprocess import Popen, STDOUT, PIPE
ImportError: No module named subprocess
------------------------------------------------------------------------

-------------------------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
  ------------------------------------------------------------------------

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