Can you guys think of any reason why it would not be able to find the Draft module for import in a event plugin?
I’m writing a new event and when I try to import Draft I get an error saying “No module named Draft”
I’ve tried appending the location to the sys.path and it doesn’t help.
And draft actually works when submitting a Draft job… for some reason my event just wont find it.
I’m assuming this is a custom event plugin – one thing to note about all of our scripts in Deadline is that they use IronPython by default. IronPython won’t be able to import Draft because it has trouble with most cpython libraries.
Try adding “#Python.Net” as the first line in your script, to signal to Deadline that it should use Python.NET to run it. I’m pretty sure that should fix it
EDIT: You might still run into issues with some stuff if the MAGICK_CONFIGURE_PATH isn’t set to the Draft directory, like Andrea mentioned. I’d make sure to set that too, if you haven’t already.