Public bug reported:
Binary package hint: python-matplotlib
When i try to export a plot from matplotlib in an eps file an exception raises
(see below). It occurs on saving it from the python interpreter with
pylab.savfig and on saving it from the graphical backend.
It raises after the image is completly saved. But it seems that there is an
error on setting the file status of the created image file.
For now uncommenting line 92 of file "/usr/lib/python2.5/shutil.py" is a dirty
workaround.
Ubuntu version: 8.04
python-matplotlib version: 0.91.2-0ubuntu1
(all used packages are from the repository)
Regards
Daniel
Traceback (most recent call last):
File "Plot.py", line 27, in <module>
savefig(os.path.join(imageBaseFolder,imageFile), dpi = 600)
File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line 269, in
savefig
return fig.savefig(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 782, in
savefig
self.canvas.print_figure(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/backend_bases.py", line
1195, in print_figure
**kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/backend_bases.py", line
1099, in print_eps
return ps.print_eps(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py",
line 1018, in print_eps
return self._print_ps(outfile, 'eps', *args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py",
line 1041, in _print_ps
orientation, isLandscape, papertype)
File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_ps.py",
line 1302, in _print_figure_tex
else: shutil.move(tmpfile, outfile)
File "/usr/lib/python2.5/shutil.py", line 199, in move
copy2(src,dst)
File "/usr/lib/python2.5/shutil.py", line 92, in copy2
copystat(src, dst)
File "/usr/lib/python2.5/shutil.py", line 67, in copystat
os.utime(dst, (st.st_atime, st.st_mtime))
OSError: [Errno 1] Operation not permitted: 'test.eps'
** Affects: matplotlib (Ubuntu)
Importance: Undecided
Status: New
--
matplotlib raises an exception on saving an eps image.
https://bugs.launchpad.net/bugs/238151
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs