AWS Thinkbox Discussion Forums

can no longer run custom script

I just upgraded from Deadline 6.1 beta3 to 6.1 RC1. We had a custom script that we were using to create ffmpeg quicktimes but this no longer seems to run since the upgrade. The following is the error that is given when the script is attempted to be executed on a given job:

2014-01-17 12:57:56: Traceback (most recent call last):
2014-01-17 12:57:56: File “DeadlineUI\UI\Commands\ScriptCommands.py”, line 88, in InnerExecute
2014-01-17 12:57:56: Exception: Python Error: Exception : Python Error: TypeError : main() takes no arguments (6 given) (Python.Runtime.PythonException)
2014-01-17 12:57:56: Stack Trace:
2014-01-17 12:57:56:
2014-01-17 12:57:56:
2014-01-17 12:57:56: at FranticX.Scripting.PythonNetScriptEngine.HandlePythonError(Exception e)
2014-01-17 12:57:56: at FranticX.Scripting.PythonNetScriptEngine.CallFunction(String functionName, PyObject[] args)
2014-01-17 12:57:56: at Deadline.Scripting.DeadlineScriptManager.CallFunction(String scopeName, String functionName, PyObject[] args)
2014-01-17 12:57:56: at Deadline.Scripting.ClientUtils.ExecuteScript(String scriptFilename, Object args) (Python.Runtime.PythonException)
2014-01-17 12:57:56: Stack Trace:
2014-01-17 12:57:56: [’ File “none”, line 126, in main\n’]
2014-01-17 12:57:56:
2014-01-17 12:57:56: at FranticX.Scripting.PythonNetScriptEngine.HandlePythonError(Exception e)
2014-01-17 12:57:56: at FranticX.Scripting.PythonNetScriptEngine.CallFunction(String functionName, PyObject[] args)
2014-01-17 12:57:56: at Deadline.Scripting.DeadlineScriptManager.CallFunction(String scopeName, String functionName)

Any help on this would be appreciated. Thanks.

-Christian

Hi Christian,

Can you upload your script so we can test it here? That will probably be the quickest way to narrow down the problem.

Also, just to confirm, is this a job right-click script in the Monitor?

Thanks!
Ryan

ok, here it is. yes this is a job script in the right click of the monitor. it creates and ffmpeg encode job for the monitor job selected.

-Christian
FFmpegSubmitVideo.7z (1.67 KB)

Thanks! The error is occurring when the job script you posted tries to call the FFmpegSubmission.py script in \your\repository\scripts\Submission. That script’s main function doesn’t take any arguments, and that’s why you’re getting that error.

I checked that script’s history, and the main function has never accepted arguments in the past. Is it possible that you customized this script, and those customizations were overwritten when you upgraded the Repository?

If this is the case, you can go into your repository’s backup folder to find your previous script (\your\repository\backup\mostRecent\scripts\Submission).

Cheers,
Ryan

Ryan, thanks, that was the problem. I did it so long ago I totally forgot.

Thanks again.

-Christian

Privacy | Site terms | Cookie preferences