AWS Thinkbox Discussion Forums

Problems accessing Deadline job data in Python script

Hi,

inside a Python module we are using to determine the user name on workstations I want to access the Deadline job data to also provide this data on the render farm. Unfortunately it fails because it cannot import ‘Deadline.Scripting’.

For debugging purposes I wrote the following script and submitted it with the Python-plugin to Deadline:

from Deadline.Scripting import * print("SlaveUtils.GetCurrentJobValue('UserName')={0}".format(SlaveUtils.GetCurrentJobValue('UserName')))
When it is executed it gets the following error:

ImportError: No module named Deadline.Scripting

Now I’m wondering where and under which circumstances the ‘Deadline.Scripting’-module is accessible. Thank you for a quick response.

Best,
Christian

I believe the Python job just runs a script using an external interpreter, not within Deadline’s Python environment (which is where you would be able to access Deadline.Scripting).

Nathan is correct here. Check out my response in your previous thread:
viewtopic.php?f=156&t=11779

Hope that helps clear things up.

Cheers,
Ryan

Privacy | Site terms | Cookie preferences