New repository - deadlinecommand not found in PATH

Hi,

I’m testing a new repository on an Ubuntu Vm - everything seems to work fine (database/job submission/rendering/tile assembly etc), but when the quick draft event plugin kicks in, it always fails with

STDOUT: Exception: deadlinecommand not found in PATH

If I switch the workers back to their existing repo (that is running on windows), they render the quickdraft without any errors.

Full part of the log where it errors out (and this is for any of my test workers using the new ubuntu repo)

2020-07-02 21:34:31: 0: INFO: Looking for bundled python at: ‘C:\Program Files\Thinkbox\Deadline10\bin\dpython.exe’
2020-07-02 21:34:31: 0: INFO: Executable: “C:\Program Files\Thinkbox\Deadline10\bin\dpython.exe”
2020-07-02 21:34:31: 0: INFO: Argument: -u “C:\Users\pikcells\AppData\Local\Thinkbox\Deadline10\slave\S05\jobsData\5efe3f62daefd20e80bf94b1\QuickDraft.py” resolution=“0.5” codec=“jpeg” quality=“75” colorSpaceIn=“Identity” colorSpaceOut=“Draft sRGB” annotationsFilePath=“C:\Users\pikcells\AppData\Local\Thinkbox\Deadline10\temp\draft_annotations_info_6037772991.txt” annotationsFramePaddingSize=“0” isDistributed=“False” quickType=“createImages” frameList=0-43 startFrame=0 endFrame=43 inFile="\pikdrive\PROJECTS\2020_killme\20-MAR_CDP_LEONARD_WAY_VIEW_A_CShading_Caustics.exr" outFile="\pikdrive\PROJECTS\2020_killme\Draft\20-MAR_CDP_LEONARD_WAY_VIEW_A_CShading_Caustics.jpg" outFolder="\pikdrive\PROJECTS\2020_killme\Draft" deadlineJobID=5efe304647d002a4649cf073 deadlineRepository="\pikdrive\deadline" taskStartFrame=0 taskEndFrame=43
2020-07-02 21:34:31: 0: INFO: Full Command: “C:\Program Files\Thinkbox\Deadline10\bin\dpython.exe” -u “C:\Users\pikcells\AppData\Local\Thinkbox\Deadline10\slave\S05\jobsData\5efe3f62daefd20e80bf94b1\QuickDraft.py” resolution=“0.5” codec=“jpeg” quality=“75” colorSpaceIn=“Identity” colorSpaceOut=“Draft sRGB” annotationsFilePath=“C:\Users\pikcells\AppData\Local\Thinkbox\Deadline10\temp\draft_annotations_info_6037772991.txt” annotationsFramePaddingSize=“0” isDistributed=“False” quickType=“createImages” frameList=0-43 startFrame=0 endFrame=43 inFile="\pikdrive\PROJECTS\2020_killme\20-MAR_CDP_LEONARD_WAY_VIEW_A_CShading_Caustics.exr" outFile="\pikdrive\PROJECTS\2020_killme\Draft\20-MAR_CDP_LEONARD_WAY_VIEW_A_CShading_Caustics.jpg" outFolder="\pikdrive\PROJECTS\2020_killme\Draft" deadlineJobID=5efe304647d002a4649cf073 deadlineRepository="\pikdrive\deadline" taskStartFrame=0 taskEndFrame=43
2020-07-02 21:34:31: 0: INFO: Startup Directory: “C:\Users\pikcells\AppData\Local\Thinkbox\Deadline10\slave\S05\Draft”
2020-07-02 21:34:31: 0: INFO: Process Priority: BelowNormal
2020-07-02 21:34:31: 0: INFO: Process Affinity: default
2020-07-02 21:34:31: 0: INFO: Process is now running
2020-07-02 21:34:31: 0: STDOUT: Traceback (most recent call last):
2020-07-02 21:34:31: 0: STDOUT: File “C:\Users\pikcells\AppData\Local\Thinkbox\Deadline10\slave\S05\jobsData\5efe3f62daefd20e80bf94b1\QuickDraft.py”, line 57, in
2020-07-02 21:34:31: 0: STDOUT: path = GetRepositoryPath(“events/DraftEventPlugin/DraftQuickSubmission”)
2020-07-02 21:34:31: 0: STDOUT: File “C:\Users\pikcells\AppData\Local\Thinkbox\Deadline10\slave\S05\jobsData\5efe3f62daefd20e80bf94b1\QuickDraft.py”, line 35, in GetRepositoryPath
2020-07-02 21:34:31: 0: STDOUT: cmd = [GetDeadlineCommand(), "-GetRepositoryPath "]
2020-07-02 21:34:31: 0: STDOUT: File “C:\Users\pikcells\AppData\Local\Thinkbox\Deadline10\slave\S05\jobsData\5efe3f62daefd20e80bf94b1\QuickDraft.py”, line 26, in GetDeadlineCommand
2020-07-02 21:34:31: 0: STDOUT: raise Exception(“deadlinecommand not found in PATH”)
2020-07-02 21:34:31: 0: STDOUT: Exception: deadlinecommand not found in PATH
2020-07-02 21:34:31: 0: INFO: Process exit code: 1
2020-07-02 21:34:31: 0: Done executing plugin command of type ‘Render Task’
2020-07-02 21:34:31: 0: An exception occurred: Error: Renderer returned non-zero error code, 1. Check the log for more information.
2020-07-02 21:34:31: at Deadline.Plugins.PluginWrapper.RenderTasks(String taskId, Int32 startFrame, Int32 endFrame, String& outMessage, AbortLevel& abortLevel) (Deadline.Plugins.RenderPluginException)

Any ideas? I’ve tried adding a DEADLINE_PATH to the repo /etc/environment but the workers shouldn’t be using that one.

Thanks!

Grab the command that the Worker is running from the line with “Full Path” in it and try running it from a command line to see what you get.

Could be we’re assuming that when that command fails it’s due to deadlinecommand not being on the path as opposed to the proper error. Running that from the commandline should shed some light for us.

Hi Justin,

Running the full path command gives me this error:

Traceback (most recent call last):
File “C:\Users\jaime\AppData\Local\Thinkbox\Deadline10\slave\W40\jobsData\5f0495a24a5413057ced4a87\QuickDraft.py”, line 9, in
from DraftParamParser import * # pylint: disable=import-error,wildcard-import
ImportError: No module named DraftParamParser

Forgot to say that the repo on the VM is running 10.1.8.5 and the windows one is 10.1.5.1

Update on this.

Copying the Quickdraft.py from 10.1.5.1 to 10.1.8.5 and the quickdraft job completes without errors.

It looks like the way python grabs the deadlinecommand path has changed and it doesn’t like it.

QuickDraft-(10.1.5.1).py (2.8 KB) QuickDraft-(10.1.8.5).py (3.6 KB)

@Justin_B,

there seems to be an error in the new QuickDraft.py file:

line 24 points to a file without extension:

deadline_command = os.path.join(deadline_binpath, “deadlinecommand”)

should be something like for windows

deadline_command = os.path.join(deadline_binpath, “deadlinecommand.exe”)

or a better way to validate the deadlinecommand file is there for all os.

That’s really surprising, as at least in a command prompt there isn’t a difference between using deadlinecommand and deadlinecommand.exe.

But since we’re checking if that’s a file or not we’re throwing an exception. You’re right, we’ve got to include the extension for checks on Windows.

Privacy | Site terms | Cookie preferences