<div class="gmail_quote">On Tue, Nov 10, 2009 at 3:41 PM, Rami Chowdhury <span dir="ltr"><<a href="mailto:rami.chowdhury@gmail.com">rami.chowdhury@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;">
<div><div></div><div class="h5">On Tue, 10 Nov 2009 12:38:36 -0800, Victor Subervi <<a href="mailto:victorsubervi@gmail.com" target="_blank">victorsubervi@gmail.com</a>> wrote:<br>
<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've determined the problem in a script is I can't open a file to write it:<br>
script = open(getpic, "w") # where getpic is already defined<br>
Here are the permissions:<br>
-rwxr-xr-x 1 root root 4649 Nov 10 12:31 start.py<br>
What am I doing wrong?<br>
TIA,<br>
Victor<br>
</blockquote>
<br></div></div>
...and where's the file denoted by getpic?<br></blockquote><div><br>getpic is incremented. For example, it can equal "getpic1.py". I've printed this out in the except statement, since it's failing the try, so I know it's working. (When I tried "raise" in the except, because of the way the code reads, it defaulted to another except and didn't show me the error.)<br>
V <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888">
<br>
<br>
-- <br>
Rami Chowdhury<br>
"Never attribute to malice that which can be attributed to stupidity" -- Hanlon's Razor<br>
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)<br>
</font></blockquote></div><br>