From: "Mr. Daniel Browne" <dbrowne@(email surpressed)> Subject: Notes field for hbatch Date: Mon, 22 Jul 2013 19:16:15 -0400 |
Msg# 2336 View Complete Thread (5 articles) | All Threads Last Next |
|
From: Greg Ercolano <erco@(email surpressed)> Subject: Re: Notes field for hbatch Date: Mon, 22 Jul 2013 19:27:16 -0400 |
Msg# 2337 View Complete Thread (5 articles) | All Threads Last Next |
Hmm, the error you're seeing is unrelated to notes submitted to the job.. so in other words this: > notes COMMAND: render -Va /out/ROP_cloves_noholdout ..is not related to this: > "rush: 'rush -notes': frame range error: 'retry': bad frame number at 'r'" I'm assuming you're seeing that error message in the frame log, correct? ie. after the houdini render fails in some way. I'm thinking the latter error message is a malformed 'rush -notes' command in the python script that is trying to set the "frame notes" (not the "job notes") to show a retry count message in the Frames report. In your script, look for a 'rush -notes' or 'rush -fu -notes' command and let's take a look at the python code that forms it. I'm thinking the frame number is absent from the command, as it should be trying to form a command that looks something like this: rush -fu -notes 0055:"retry #1 of 3" ..where: > "0055" is the os.environ["RUSH_FRAME"] > '1' is the try count, > '3' is the maximum retry count the user specified I'm thinking the "0055:" is being left out. On 07/22/13 16:16, Mr. Daniel Browne wrote: > Hi Greg, > > I'm trying to get rid of a long standing bug in my python-based Houdini scripts. The hbatch command is passed via the Notes field, just as it is in your perl version of the script. According to your docs however the notes field needs to begin with a frame range, correct? > > Here's a submit which illustrates the current state of my notes field: > > title cca0030_fx_cloves_007_v001.hip-ROP_cloves_noholdout_HOUDINI > frames 1398-1578,1000000 > command python /EEP/Tools/Settings/rush/rushscripts_v102.42a9/submit-maya-python/submit_houdini.py -render /Casino/Poker/Shows/cc/cca/cca0030/fx/houdini/chrish/cca0030_fx_cloves_007_v001.hip 0 off 1000000 1578 1 yes 3 Fail > imgcommand python /EEP/Tools/Settings/rush/rushscripts_v102.42a9/submit-maya-python/submit_houdini.py -imgcommand %s > autodump off > maxtime 00:00:00 > maxtimestate que > ram 8000 > waitforstate done > cpus +linux=1@10 > logdir /Casino/Poker/Shows/cc/cca/cca0030/fx/houdini/chrish/logs/cca0030_fx_cloves_007_v001.hip.log/ROP_cloves_noholdout > > notes COMMAND: render -Va /out/ROP_cloves_noholdout > > This typically produces an error and causes the render to immediately go to retry #2: > > "rush: 'rush -notes': frame range error: 'retry': bad frame number at 'r'" -- Greg Ercolano, erco@(email surpressed) Seriss Corporation Rush Render Queue, http://seriss.com/rush/ Tel: (Tel# suppressed)ext.23 Fax: (Tel# suppressed) Cel: (Tel# suppressed) |
From: "Mr. Daniel Browne" <dbrowne@(email surpressed)> Subject: Re: Notes field for hbatch Date: Mon, 22 Jul 2013 19:52:30 -0400 |
Msg# 2338 View Complete Thread (5 articles) | All Threads Last Next |
The only line I can find similar to that is: print >> sys.stderr, "\n--- RETRY #%d of %s" % (curTry, fields["Retries"]) Rush.System("rush -fu -notes %s retry #%d of %d" % (os.environ["RUSH_FRAME"], curTry, fields["Retries"])) time.sleep(10) I'm guessing os.environ["RUSH_FRAME"] is being used before a value is set…? On Jul 22, 2013, at 4:27 PM, Greg Ercolano wrote: -notes ---------- Dan "Doc" Browne System Administrator Evil Eye Pictures dbrowne@(email surpressed) Office: (415) 777-0666 x105 |
From: Greg Ercolano <erco@(email surpressed)> Subject: Re: Notes field for hbatch Date: Mon, 22 Jul 2013 19:57:40 -0400 |
Msg# 2339 View Complete Thread (5 articles) | All Threads Last Next |
On 07/22/13 16:52, Mr. Daniel Browne wrote: > The only line I can find similar to that is: > Rush.System("rush -fu -notes %s retry #%d of %d" % (os.environ["RUSH_FRAME"], curTry, fields["Retries"])) Yep, that's it. The problem is missing colon and quotes to protect the message string. Make the following changes to your script, and I believe should work: BEFORE: Rush.System("rush -fu -notes %s retry #%d of %d" % (os.environ["RUSH_FRAME"], curTry, fields["Retries"])) AFTER: Rush.System("rush -fu -notes \"%s:retry #%d of %d\"" % (os.environ["RUSH_FRAME"], curTry, fields["Retries"])) -- Greg Ercolano, erco@(email surpressed) Seriss Corporation Rush Render Queue, http://seriss.com/rush/ Tel: (Tel# suppressed)ext.23 Fax: (Tel# suppressed) Cel: (Tel# suppressed) |
From: "Mr. Daniel Browne" <dbrowne@(email surpressed)> Subject: Re: Notes field for hbatch Date: Mon, 22 Jul 2013 20:01:41 -0400 |
Msg# 2340 View Complete Thread (5 articles) | All Threads Last Next |
I had a feeling it had to do with escapes. Thanks Greg; I'll see what happens. On Jul 22, 2013, at 4:57 PM, Greg Ercolano wrote: [posted to rush.general] On 07/22/13 16:52, Mr. Daniel Browne wrote: > The only line I can find similar to that is: > Rush.System("rush -fu -notes %s retry #%d of %d" % (os.environ["RUSH_FRAME"], curTry, fields["Retries"])) Yep, that's it. The problem is missing colon and quotes to protect the message string. Make the following changes to your script, and I believe should work: BEFORE: Rush.System("rush -fu -notes %s retry #%d of %d" % (os.environ["RUSH_FRAME"], curTry, fields["Retries"])) AFTER: Rush.System("rush -fu -notes \"%s:retry #%d of %d\"" % (os.environ["RUSH_FRAME"], curTry, fields["Retries"])) -- Greg Ercolano, erco@(email surpressed) Seriss Corporation Rush Render Queue, http://seriss.com/rush/ Tel: (Tel# suppressed)ext.23 Fax: (Tel# suppressed) Cel: (Tel# suppressed) ---------- Dan "Doc" Browne System Administrator Evil Eye Pictures dbrowne@(email surpressed) Office: (415) 777-0666 x105 |