AWS Thinkbox Discussion Forums

job script, last line comment -> crash

If the last line of a job script (the right click menu / scripts type of script) starts with a #, it will crash no matter what.

This is the crash i get:

2013-10-11 18:25:45: Traceback (most recent call last):
2013-10-11 18:25:45: File “DeadlineUI\UI\Commands\ScriptCommands.py”, line 85, in InnerExecute
2013-10-11 18:25:45: Exception: Python Error: SyntaxError : (‘invalid syntax’, (‘none’, 49, 1, ‘#’)) (Python.Runtime.PythonException)
2013-10-11 18:25:45: Stack Trace:
2013-10-11 18:25:45:
2013-10-11 18:25:45:
2013-10-11 18:25:45: at FranticX.Scripting.PythonNetScriptEngine.a(Exception A_0)
2013-10-11 18:25:45: at FranticX.Scripting.PythonNetScriptEngine.ExecuteScript(String scriptName, String script)
2013-10-11 18:25:45: at Deadline.Scripting.DeadlineScriptManager.CreateScopeFromScript(String scopeName, String scriptName, String script, Boolean addGlobalFunctions, Boolean redirectToScriptManagerListener)
2013-10-11 18:25:45: at Deadline.Scripting.DeadlineScriptManager.CreateScopeFromScript(String scopeName, String scriptName, String script, Boolean addGlobalFunctions)

Not sure if this is directly related to Deadline or Python in general. Ive had the same problem when running Python-scripts in Cinema4d. No idea why it happens though :slight_smile:

-b

I had this issue last week as well (it’s not just job scripts but any Python script inside of Deadline). Looks like the last line returning Nothing/None upsets Deadline? Maybe it’s expecting a value?
Just tested Deadline v5.2 and it doesn’t have this issue nor do standalone Python scripts and Google turns up no results on this issue, so I’m thinking its a bug in v6.x?

Not sure why this happens, but it’s easy enough to fix on our end by simply removing any comments from the end of the script before executing it. This will be fixed in beta 8.

Cheers,

  • Ryan
Privacy | Site terms | Cookie preferences