AWS Thinkbox Discussion Forums

Draft Looking For Wrong Version of Python

My Draft jobs are failing with the following error:

2023-09-15 14:57:23:  0: STDOUT: /Applications/Thinkbox/Deadline10/Resources/python3/python: line 5: /Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: No such file or directory
2023-09-15 14:57:23:  0: STDOUT: /Applications/Thinkbox/Deadline10/Resources/python3/python: line 5: exec: /Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: cannot execute: No such file or directory
2023-09-15 14:57:24:  0: INFO: Process exit code: 126

Looking at my filesystem, these directories do not exist -
/Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/3.10 is there, but not 3.7.

How can I change it so Draft uses the correct, installed version of Python, rather than 3.7?

I sort of answered this over in this one but the parts of Draft written in C are built against 3.7 specifically in older versions and can’t be used directly in other versions of Python. The newest version of Deadline (3.10.0.10) does target Python 3.10 so you could try stealing that from the Repository installer.

I am on the latest version of Deadline - 10.3.0.10. Drafts is still targeting Python 3.7.

Hello

Is it possible that the Deadline Client is out of date, what is the version of Client you are using? if it is 10.3.0.10 then we need to check the following.

  1. Are you connected with the RCS?
  2. What is MAGICK_CONFIGURE_PATH, PYTHON_PATH and DYLD_LIBRARY_PATH are set tp? here is how to set the standalone env: Draft — Deadline 10.3.0.10 documentation

I’m using the 10.3.0.10 client.

I’m using a direct connection, not RCS.

None of those environmental variables are set. I’m not using Drafts by itself, thought - this is through Deadline after a job is run.

Hello

Can you attach a full job report here. Controlling Jobs — Deadline 10.2.1.1 documentation share the Task ID 0 (which is the 4th column from left in the Job reports panel)

I will check DraftPlugin to compare it with the job.

Those environment variables should override the path to Draft and set to it where the Repository is. Normally it is not required but for some reason in your case it is getting old paths.

Have you got anything in your [repo]/custom/plugins/ directory?

here’s the job report:

=======================================================
Error
=======================================================
Error: Renderer returned non-zero error code, 126. Check the log for more information.
   at Deadline.Plugins.PluginWrapper.RenderTasks(Task task, String& outMessage, AbortLevel& abortLevel)

=======================================================
Type
=======================================================
RenderPluginException

=======================================================
Stack Trace
=======================================================
   at Deadline.Plugins.SandboxedPlugin.d(DeadlineMessage bgt, CancellationToken bgu)
   at Deadline.Plugins.SandboxedPlugin.RenderTask(Task task, CancellationToken cancellationToken)
   at Deadline.Slaves.SlaveRenderThread.c(TaskLogWriter ajy, CancellationToken ajz)

=======================================================
Log
=======================================================
2023-09-15 14:57:42:  0: Loading Job's Plugin timeout is Disabled
2023-09-15 14:57:42:  0: SandboxedPlugin: Render Job As User disabled, running as current user 'admin25'
2023-09-15 14:57:45:  0: Executing plugin command of type 'Initialize Plugin'
2023-09-15 14:57:45:  0: INFO: Executing plugin script '/Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/plugins/6504d2e7d44999f7475021f3/DraftPlugin.py'
2023-09-15 14:57:45:  0: INFO: Plugin execution sandbox using Python version 3
2023-09-15 14:57:45:  0: INFO: Found Draft python module at: '/Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/Draft/Draft.so'
2023-09-15 14:57:45:  0: INFO: Setting Process Environment Variable PYTHONPATH to /Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/Draft:/Users/admin25/Library/Application Support/Thinkbox/Deadline10/pythonAPIs/ZWF8ughkIp8ZcoyjtI1mgw==:/Applications/Thinkbox/Deadline10/Resources/python3:/Applications/Thinkbox/Deadline10/Resources/python3/lib:/Applications/Thinkbox/Deadline10/Resources/python3/lib/site-packages:/Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/Current/lib/python310.zip:/Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/Current/lib/python3.10:/Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/Current/lib/python3.10/lib-dynload:/Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/Current/lib/python3.10/site-packages:/Applications/Thinkbox/Deadline10/Resources/
2023-09-15 14:57:45:  0: INFO: Setting Process Environment Variable MAGICK_CONFIGURE_PATH to /Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/Draft
2023-09-15 14:57:45:  0: INFO: Setting Process Environment Variable DYLD_LIBRARY_PATH to /Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/Draft:/Applications/Thinkbox/Deadline10/Resources
2023-09-15 14:57:45:  0: INFO: About: Draft Plugin for Deadline
2023-09-15 14:57:45:  0: INFO: The job's environment will be merged with the current environment before rendering
2023-09-15 14:57:45:  0: Done executing plugin command of type 'Initialize Plugin'
2023-09-15 14:57:45:  0: Start Job timeout is disabled.
2023-09-15 14:57:45:  0: Task timeout is disabled.
2023-09-15 14:57:45:  0: Loaded job: final_test - TEST RENDER - Fernando (Mac Studio) [Quick Draft] (6504d2e7d44999f7475021f3)
2023-09-15 14:57:45:  0: Executing plugin command of type 'Start Job'
2023-09-15 14:57:45:  0: DEBUG: S3BackedCache Client is not installed.
2023-09-15 14:57:45:  0: INFO: Executing global asset transfer preload script '/Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/plugins/6504d2e7d44999f7475021f3/GlobalAssetTransferPreLoad.py'
2023-09-15 14:57:45:  0: INFO: Looking for legacy (pre-10.0.26) AWS Portal File Transfer...
2023-09-15 14:57:45:  0: INFO: No legacy (pre-10.0.26) File Transfer controller is available for this platform (darwin).
2023-09-15 14:57:45:  0: INFO: Could not find legacy (pre-10.0.26) AWS Portal File Transfer.
2023-09-15 14:57:45:  0: INFO: Legacy (pre-10.0.26) AWS Portal File Transfer is not installed on the system.
2023-09-15 14:57:45:  0: Done executing plugin command of type 'Start Job'
2023-09-15 14:57:45:  0: Plugin rendering frame(s): 0-94
2023-09-15 14:57:46:  0: Executing plugin command of type 'Render Task'
2023-09-15 14:57:46:  0: INFO: Draft job starting...
2023-09-15 14:57:46:  0: INFO: Stdout Redirection Enabled: True
2023-09-15 14:57:46:  0: INFO: Asynchronous Stdout Enabled: False
2023-09-15 14:57:46:  0: INFO: Stdout Handling Enabled: True
2023-09-15 14:57:46:  0: INFO: Popup Handling Enabled: False
2023-09-15 14:57:46:  0: INFO: Using Process Tree: True
2023-09-15 14:57:46:  0: INFO: Hiding DOS Window: True
2023-09-15 14:57:46:  0: INFO: Creating New Console: False
2023-09-15 14:57:46:  0: INFO: Running as user: admin25
2023-09-15 14:57:46:  0: INFO: Looking for bundled python at: '/Applications/Thinkbox/Deadline10/Resources/python3/python'
2023-09-15 14:57:46:  0: INFO: Executable: "/Applications/Thinkbox/Deadline10/Resources/python3/python"
2023-09-15 14:57:46:  0: INFO: Argument: -u "/Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/jobsData/6504d2e7d44999f7475021f3/QuickDraft.py" resolution="0.5" codec="mpeg4" quality="85" colorSpaceIn="Identity" colorSpaceOut="Identity" annotationsFilePath=""None"" annotationsFramePaddingSize="None" isDistributed="False" frameRate="24" quickType="createMovie" frameList=0-94 startFrame=0 endFrame=94 inFile="/Volumes/04-Local-Media/Matthew/test_render/prores3.mov" outFile="/Volumes/04-Local-Media/Matthew/test_render/Draft/prores3.mov" outFolder="/Volumes/04-Local-Media/Matthew/test_render/Draft" deadlineJobID=6504d0259f17b7702cd7a14e deadlineRepository="/Volumes/DeadlineRepository" taskStartFrame=0 taskEndFrame=94 
2023-09-15 14:57:46:  0: INFO: Full Command: "/Applications/Thinkbox/Deadline10/Resources/python3/python" -u "/Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/jobsData/6504d2e7d44999f7475021f3/QuickDraft.py" resolution="0.5" codec="mpeg4" quality="85" colorSpaceIn="Identity" colorSpaceOut="Identity" annotationsFilePath=""None"" annotationsFramePaddingSize="None" isDistributed="False" frameRate="24" quickType="createMovie" frameList=0-94 startFrame=0 endFrame=94 inFile="/Volumes/04-Local-Media/Matthew/test_render/prores3.mov" outFile="/Volumes/04-Local-Media/Matthew/test_render/Draft/prores3.mov" outFolder="/Volumes/04-Local-Media/Matthew/test_render/Draft" deadlineJobID=6504d0259f17b7702cd7a14e deadlineRepository="/Volumes/DeadlineRepository" taskStartFrame=0 taskEndFrame=94 
2023-09-15 14:57:46:  0: INFO: Startup Directory: "/Users/Shared/Thinkbox/Deadline10/workers/gfx-render-02/Draft"
2023-09-15 14:57:46:  0: INFO: Process Priority: BelowNormal
2023-09-15 14:57:46:  0: INFO: Process Affinity: default
2023-09-15 14:57:46:  0: INFO: Process is now running
2023-09-15 14:57:46:  0: STDOUT: /Applications/Thinkbox/Deadline10/Resources/python3/python: line 5: /Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: No such file or directory
2023-09-15 14:57:46:  0: STDOUT: /Applications/Thinkbox/Deadline10/Resources/python3/python: line 5: exec: /Applications/Thinkbox/Deadline10/Resources/python3/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: cannot execute: No such file or directory
2023-09-15 14:57:46:  0: INFO: Process exit code: 126
2023-09-15 14:57:46:  0: Done executing plugin command of type 'Render Task'

=======================================================
Details
=======================================================
Date: 09/15/2023 14:57:50
Frames: 0-94
Elapsed Time: 00:00:00:09
Job Submit Date: 09/15/2023 14:55:51
Job User: mbc
Average RAM Usage: 747210048 (3%)
Peak RAM Usage: 749547520 (3%)
Average CPU Usage: 9%
Peak CPU Usage: 20%
Used CPU Clocks (x10^6 cycles): 7344
Total CPU Clocks (x10^6 cycles): 81596

=======================================================
Worker Information
=======================================================
Worker Name: gfx-render-02
Version: v10.3.0.10 Release (ac90e7082)
Operating System: macOS 13.5.2
Machine User: admin25
IP Address: 10.0.1.66
MAC Address: 9C:76:0E:34:89:99
CPU Architecture: x86_64
CPUs: 10
CPU Usage: 9%
Memory Usage: 709.2 MB / 32.0 GB (2%)
Free Disk Space: 305.063 GB 
Video Card: Apple M1 Max

nothing in my /custom/plugins directory inside my repo.

I had the same issue. It comes from this file :

/Applications/Thinkbox/Deadline10/Resources/python3/python

There is a hardcoded link to Python 3.7 here

#!/bin/sh
cd `dirname "$0"` > /dev/null
SHELL_PATH=`pwd -P`
export DYLD_FRAMEWORK_PATH=${SHELL_PATH}/Frameworks:${DYLD_FRAMEWORK_PATH}
exec "${SHELL_PATH}/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python" "$@"
cd - > /dev/null

I edited the line and changed Versions/3.7/… to Versions/Current/…
and it seems to work.

1 Like

That looks good to me - though I’d be tempted to hard-code 3.10 instead of Current, just in case pulling the latest copy of Python in the directory could get out of step with the currently installed Deadline’s scripts.

Disregard all that above, cracked open the installer and we are the ones making that Current directory symlink to 3.10, so unless the client version falls behind the repository version there won’t be trouble.

I’ll see to getting that fixed.

Privacy | Site terms | Cookie preferences