Hello,
recently, I experience multiple problems with Deadline, Draft and Shotgun. Now, I think it’s all related to one error message I get whenever I submit my jobs out of Nuke.
Events plugin 'Shotgun' could not be loaded from the repository because: Error
executing event plugin script "\\mg02\deadlinerepository5\events\Shotgun\Shotgun.py": Unable to load DLL
'python26': The specified module could not be found. (Exception from HRESULT:
0x8007007E)(Deadline.Events.DeadlineEventPluginException)
Well, that sounds like a problem ! The issues I had for around two months now, atleast I remember noticing back then, are:
- Nuke can’t submit Draft jobs anymore (but Shotgun versions are still created!).
- When submitting Draft jobs inside the Deadline Monitor (right clicking on a rendered job /Scripts/Submit Draft Job) the slates’ fields contain “undefined” instead of Shotgun attributes and the output movie is not uploaded to Shotgun. At the end of the Draft job there is one logged error:
[code]=======================================================
Error Message
TypeError : int() argument must be a string or a number, not ‘NoneType’
=======================================================
Slave Log
An error occurred in the “OnJobFinished” function in events plugin ‘Shotgun’: An error occurred in function “OnJobFinished” the event plugin script file “\mg02\deadlinerepository5\events\Shotgun\Shotgun.py”: TypeError : int() argument must be a string or a number, not ‘NoneType’
Python Exception: TypeError : int() argument must be a string or a number, not ‘NoneType’ (Python.Runtime.PythonException)
Type: <type ‘exceptions.TypeError’>
Value: int() argument must be a string or a number, not ‘NoneType’
Stack Trace:
[’ File “none”, line 172, in OnJobFinished\n’]
(Deadline.Events.DeadlineEventPluginException)
at Deadline.Events.DeadlineEventPlugin.HandlePythonError(String message, Exception e)
at Deadline.Events.DeadlineEventPlugin.OnJobFinished(Job job, String[] auxiliaryFilenames)
at Deadline.Events.DeadlineEventManager.OnJobFinished(Job job, String[] auxiliaryFilenames, DeadlineController deadlineController)
=======================================================
Error Type
PythonException
=======================================================
Error Stack Trace
[’ File “none”, line 172, in OnJobFinished\n’]
[/code]
I personally can’t remember someone changing anything in the Shotgun.py but I am not sure about that (maybe someone could have a look at it if there’s an invalid argument regarding versionId).
The mentioned line in the Shotgun.py looks like following:
ShotgunUtils.UpdateVersion( int(versionId), statusCode, shotgunPath )
And the part where versionId is defined:
[code] versionId = None
try:
# Use ShotgunUtils ot add a new version to Shotgun.
newVersion = ShotgunUtils.AddNewVersion( userName, taskId, projectId, entityId, entityType, version, description, frameList, frameCount, outputPath, shotgunPath, job.JobId )
versionId = newVersion[‘id’]
ClientUtils.LogText( "Created new version in Shotgun with ID " + str(versionId) + ": " + version )
# Save the version ID with the job for future events.
job.SetJobExtraInfoKeyValue( "VersionId", str(versionId) )
RepositoryUtils.SaveJob( job )
except:
if verboseLogging:
raise
else:
ClientUtils.LogText( "An error occurred while attempting to add a new Version to Shotgun. No Version has been created." )
return None
return versionId[/code]
While I am at it anyway I’m going to upload the .py. I’d love to hear your ideas on what could cause the problem. Thanks, thanks, thanks!
Before I forget: the “missing” python26.dll is here “\mg02\deadlinerepository5\python\Windows\2.6.7\x64” (is that correct?).
Best regards,
Dziga
Shotgun.zip (3.42 KB)