Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error if an output file already exists (matplotlib)

If I have a file already, and try to overwrite it, I get an error:

    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied:

I use the matplotlib savefig function.

Full Error Output: http://rn0.ru/show/8AXiJGpriPqIQa8cdcGk/

The error only occurs if I restart the worksheet. If I manually delete all the file(s), there is no problem. How can I fix it? An easy solution would be to delete the output files before I try to overwride them, but how can I delete files?

Error if an output file already exists (matplotlib)

If I have a file already, and try to overwrite it, I get an error:

    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied:

I use the matplotlib savefig function.

Full Error Output: http://rn0.ru/show/8AXiJGpriPqIQa8cdcGk/

The error only occurs if I restart the worksheet. If I manually delete all the file(s), there is no problem. How can I fix it? An easy solution would be to delete the output files before I try to overwride overwrite them, but how can I delete files?

click to hide/show revision 3
retagged

Error if an output file already exists (matplotlib)

If I have a file already, and try to overwrite it, I get an error:

    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied:

I use the matplotlib savefig function.

Full Error Output: http://rn0.ru/show/8AXiJGpriPqIQa8cdcGk/

The error only occurs if I restart the worksheet. If I manually delete all the file(s), there is no problem. How can I fix it? An easy solution would be to delete the output files before I try to overwrite them, but how can I delete files?