Hello!
We use Nuke to process thousands of outputs automatically and have custom python scripts that handle this for us locally. Locally the workflow is for the artist to load their Nuke script, run script and it launches the process and cycles through until complete.
I would like to get this working on the farm using Deadline submission but there is an error when I send the Python Script File along with the submission and I am not sure why.
This same python script works perfectly when triggered by the artist inside Nuke.
Any help appreciated.
The error is as follows;
=======================================================
Error
Error: FailRenderException : SyntaxError: invalid syntax
at Deadline.Plugins.DeadlinePlugin.FailRender(String message) (Python.Runtime.PythonException)
File “C:\ProgramData\Thinkbox\Deadline10\workers\56-studio-20\plugins\651fec72332b5f26cacb8842\Nuke.py”, line 224, in RenderTasks
self.WritePython( “with open(”{}") as f: exec(compile(f.read(), “{}”, ‘exec’), globals(), locals()))".format(scriptFileName, scriptFileName) )
File “C:\ProgramData\Thinkbox\Deadline10\workers\56-studio-20\plugins\651fec72332b5f26cacb8842\Nuke.py”, line 41, in WritePython
self.WaitForProcess()
File “C:\ProgramData\Thinkbox\Deadline10\workers\56-studio-20\plugins\651fec72332b5f26cacb8842\Nuke.py”, line 48, in WaitForProcess
self.FlushMonitoredManagedProcessStdout( self.ProcessName )
File “C:\ProgramData\Thinkbox\Deadline10\workers\56-studio-20\plugins\651fec72332b5f26cacb8842\Nuke.py”, line 623, in HandleError
self.deadlinePlugin.FailRender( self.GetRegexMatch( 0 ) )
at Python.Runtime.Dispatcher.Dispatch(ArrayList args)
at __FranticX_GenericDelegate0Dispatcher.Invoke()
at Deadline.Plugins.DeadlinePlugin.RenderTasks()
at Deadline.Plugins.DeadlinePlugin.DoRenderTasks()
at Deadline.Plugins.PluginWrapper.RenderTasks(Task task, String& outMessage, AbortLevel& abortLevel)
at Deadline.Plugins.PluginWrapper.RenderTasks(Task task, String& outMessage, AbortLevel& abortLevel)
=======================================================
Type
RenderPluginException
=======================================================
Stack Trace
at Deadline.Plugins.SandboxedPlugin.d(DeadlineMessage bgq, CancellationToken bgr)
at Deadline.Plugins.SandboxedPlugin.RenderTask(Task task, CancellationToken cancellationToken)
at Deadline.Slaves.SlaveRenderThread.c(TaskLogWriter ajv, CancellationToken ajw)