On Mon, Nov 30, 2009 at 8:21 PM, Victor Subervi <span dir="ltr"><<a href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><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></blockquote><div><br>Try chmodding the file to 755.<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When I go into the python interpreter and execute that statement, it succeeds. What have I missed?<br>TIA,<br><font color="#888888">Victor<br>
</font><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>