This is the message we get when the file can’t be found. I see that you’re running the script via Deadline, although the path is hard-coded… is the slave that it ran on one that has access to the F: drive? Is it Windows as well? Are there any sneaky typos in the directory or filename?
If you use one of the supplied sample scripts, such as YourRepository\draft\Samples\Resize\resize_image_640x480_fit_width.py, is it able to find that file? If that script can’t find that file when you’ve selected the input using the submission dialog, could you attach that image here, or e-mail it to support, so we can see if there’s something odd with that image?
So I’ve tried using the resize_image_640x480_fit_width.py script and I’m getting a different error message. As I said before I’m not very familiar with scripting, so I’m trying to learn as I go along but if you could help me understand what the problem is I’d be really grateful.
Here are the error messages:
2015-02-16 12:05:25: 0: STDOUT: outFolder=F:\users\david\deadline_test
2015-02-16 12:05:25: 0: STDOUT: outFile=F:\users\david\deadline_test" inFile=F:\users\david\deadline_test\deadline_tests.#####.jpeg deadlineRepository=Z:\pipeline\deadline7 taskStartFrame=1 taskEndFrame=5
2015-02-16 12:05:25: 0: STDOUT: params = ParseCommandLine( expectedTypes, sys.argv ) # params now contains a dictionary of the parameters initialized to values from the command line arguments.
2015-02-16 12:05:25: 0: STDOUT: File “C:\Users\admin\AppData\Local\Thinkbox\Deadline7\slave\lexpc09\Draft\DraftParamParser.py”, line 197, in ParseCommandLine
2015-02-16 12:05:25: 0: STDOUT: return ParseParams( expected, params )
2015-02-16 12:05:25: 0: STDOUT: File “C:\Users\admin\AppData\Local\Thinkbox\Deadline7\slave\lexpc09\Draft\DraftParamParser.py”, line 120, in ParseParams
2015-02-16 12:05:25: 0: STDOUT: raise StandardError( “ERROR: Expected parameter ‘%s’ was not found.” % key )
2015-02-16 12:05:25: 0: STDOUT: StandardError: ERROR: Expected parameter ‘inFile’ was not found.
2015-02-16 12:05:26: 0: INFO: Process exit code: 1
Yup, that missing ‘e’ would do it, and is one of those sneaky ones to catch!
It looks like your current problem is because your input file ends with a ‘’. Try removing that trailing ‘’ and see if the problem resolves. (The trailing ‘’ causes the close quote to be treated as part of the input, and not the end of the string.) I believe Jon has an updated Draft submission script that fixes this problem, I’ll check with him tomorrow. (It’s a statutory holiday today here in Manitoba.)
This is indeed an issue that I’ve fixed in Deadline 7.1. I’ve attached the updated plugin below. To apply this to your farm, simply replace the Draft plugin script located at “plugins/Draft/Draft.py” in your Deadline Repository with the attached version. Make sure to backup the old one in case this one somehow makes things worse!