Hello there!
I’m using Deadline 10.2.0.10, I just upgraded from Deadline 8.
When I submit a Nuke job with BatchMode=True
and ScriptJob=True
, I get syntax error:
Error: FailRenderException : SyntaxError: unmatched ')'
at Deadline.Plugins.DeadlinePlugin.FailRender(String message) (Python.Runtime.PythonException)
File "C:\ProgramData\Thinkbox\Deadline10\workers\*****\plugins\6437f80ec94451eb36045475\Nuke.py", line 224, in RenderTasks
self.WritePython( "with open(\"{}\") as f: exec(compile(f.read(), \"{}\", 'exec'), globals(), locals()))".format(scriptFileName, scriptFileName) )
This is caused by the following, original code:
def RenderTasks( self ):
if self.BatchMode and self.ScriptJob:
scriptFileName = self.GetPluginInfoEntry( "ScriptFilename" ).replace( "\\", "/" )
self.WritePython( "with open(\"{}\") as f: exec(compile(f.read(), \"{}\", 'exec'), globals(), locals()))".format(scriptFileName, scriptFileName) )
It seems like there’s an extra ‘)’ in the vanilla Nuke.py. I’m really confused, because I don’t think there can a mistake here, because then lots of people would have the same issue. However it really seems like a syntax error to me.
And even if I fix this, by removing the extra ‘)’, I get the next error, where it states, that the result of ReadyForInputCommand has a syntax error right at the p of the print.
def ReadyForInputCommand(self):
return "print( \"READY FOR INPUT\\n\" )"
I think these might be connected, but I’m confused by this whole situation. How can this out-of-the-box script not work for me?!
Thanks for the answers in advance!