<div class="gmail_quote">On Mon, Nov 30, 2009 at 3:21 PM, Victor Subervi <span dir="ltr"><<a href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi;<br>I get the following error when I try<br>os.remove(file)<br><br><b>OSError</b>: [Errno 13] Permission denied: 'particulars.py'
<br><tt><small> </small> </tt>args =
(13, 'Permission denied')
<br><tt><small> </small> </tt>errno =
13
<br><tt><small> </small> </tt>filename =
'particulars.py'
<br><tt><small> </small> </tt>strerror =
'Permission denied'
<br><br>Here are the permissions:<br><br>-rwxr-xr-x 1 root root 455 Nov 28 05:58 particulars.py<br><br>When I go into the python interpreter and execute that statement, it succeeds. What have I missed?<br><br></blockquote>
<div>This is on a CentOS system. I've tried manipulating the mode to 666 and 777 but that didn't help at all. I do read from the file, then close it, but I've tried deleting a file I don't read and come up with the same error.<br>
TIA,<br>V <br></div></div><br>