[Toolserver-l] Python/Job issues

Marcin Cieslak saper at saper.info
Thu Apr 14 12:50:40 UTC 2011


>> DeltaQuad <deltaquad at live.ca> wrote:
>> You should read <https://wiki.toolserver.org/view/Mailing_list_etiquette>
> when you get a chance.
>
> Sorry about that. Read it now.
>
>> As far as I can see, this is due to /home/deltaquad/UAA/UAA.py using
> Windows line endings (CRLF) instead of Unix line endings (LF).
>
> I've ran this on my Linux Mint (with the change of the pywikipedia directory
> only) and it runs fine. (Not sure if that helps)
>
>> Can you try this:
>
>>qsub -l h_rt=0:05:00 -l s_rt=0:04:30 -b y -m e -j y -o $HOME/UAA.out
> $HOME/UAA/UAA.py
>
>>(I added the "-b y" option and it seems to work here).
>
> I get this instead in the output file now: " newtask: exec of
> /home/deltaquad/UAA/UAA.py failed: No such file or directory"

This is because your CRLF Windows line endings in your file.
I copied your file to my $HOME and got the same problem.

SGE is not exactly the same as running your script from shell.

Besides, you don't need #! /usr/bin/python twice
and if you use "-b y" your #$ declarations won't work and should
be removed. 

//Marcin




More information about the Toolserver-l mailing list