Global name 'GetConfigEntryWith Default' is not defined


#1

When a postjobscript is run I get the following error message ->global name ‘GetConfigEntryWith Default’ is not defined

Here is the script snippet:

Get plugin executable path (path to python3.6.9):

pluginVersion = SlaveUtils.GetCurrentPluginValue( 'Version')
print 'Using %s plugin version: %s' % (plugin, pluginVersion)
executableList = GetConfigEntryWithDefault( ("RenderExecutable%s" % pluginVersion), "/usr/bin/python3.6")
executablePath = SearchFileList(executableList)
print 'FOUND existing %s executable on this slave at path: %s ' % (plugin, executablePath)

Here is the complete error message

=======================================================

Error

=======================================================

Error: Post task script “/prod/Deadline/scripts/PrePosPaskJobScritpts/JobNukeConvert/post_script_call_seq_to_mp4.py”: NameError : global name ‘GetConfigEntryWithDefault’ is not defined (FranticX.Scripting.PythonNetException)

File "none", line 55, in main

at Deadline.Plugins.ScriptPlugin.RenderTasks (System.String taskId, Int32 startFrame, Int32 endFrame, System.String& outMessage, FranticX.Processes.AbortLevel& abortLevel) [0x00000] in <filename unknown>:0

Thanks
/Biju