Marcin Cieslak wrote:
This is because your CRLF Windows line endings in your file. I copied your file to my $HOME and got the same problem.
Right. I said this already. ;-)
SGE is not exactly the same as running your script from shell.
From a bit of testing, it seems like Python doesn't care if a script uses
CRLF line endings or LF line endings, but Unix's exec() does. When SGE calls exec() on the Python script with the CRLF line endings, it can't get past the first line and then dies with a mostly unhelpful error message.
DeltaQuad: I tested this pretty extensively last night. Seriously, just fix your line endings and you should be good to go. :-)
MZMcBride