Opened 18 years ago
Closed 18 years ago
#100 closed defect (fixed)
Saving postscipt is broken
Reported by: | Chris Phillips | Owned by: | Malte Marquarding |
---|---|---|---|
Priority: | high | Milestone: | ASAP 2.1 |
Component: | General | Version: | 2.0 |
Severity: | major | Keywords: | |
Cc: | chris.phillips@… |
Description
When I try and save the current plotter window to postscript (plotter.save) I get a asap python error:
{{ ASAP>plotter.save('mops.ps')
Traceback (most recent call last):
File "<console>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/asap/asapplotter.py", line 505, in save
self._plotter.save(filename,orientation,dpi)
File "/usr/local/lib/python2.3/site-packages/asap/asaplotbase.py", line 419, in save
from matplotlib.backends.backend_ps import papersize
ImportError: cannot import name papersize
ASAP>plotter.save('mops.eps')
Traceback (most recent call last):
File "<console>", line 1, in ? File "/usr/local/lib/python2.3/site-packages/asap/asapplotter.py", line 505, in save
self._plotter.save(filename,orientation,dpi)
File "/usr/local/lib/python2.3/site-packages/asap/asaplotbase.py", line 436, in save
self.figure.savefig(fname,dpi=dpi)
File "/usr/local/lib/python2.3/site-packages/matplotlib/figure.py", line 660, in savefig
self.canvas.print_figure(*args, kwargs)
File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line 481, in print_figure
from backend_ps import FigureCanvasPS # lazy import
ImportError: cannot import name FigureCanvasPS
}}
This is specific to the ATNF /usr/local installation.
It is fixed now. For some reason the subprocess module wasn't installed.