AWS Thinkbox Discussion Forums

Running a Python 3.6 job on Deadline

I was reading the docs for Python jobs:

docs.thinkboxsoftware.com/produ … ython.html

I think it’s really cool that I can submit a Python job to Deadline. However, I have been using Python 3.6 with this script I want to run on the farm, and in the GUI, the highest supported Python version is 3.2. How can I add the Python 3.6 executable to the Python plugin?

Thanks!

Oh, do I just update this code snippet in Python.options?

[Version]
Type=enum
Values=2.3;2.4;2.5;2.6;2.7;3.0;3.1;3.2
Label=Version
Category=Python Options
Index=2
Description=The version of Python to use.
Required=false
DisableIfBlank=true

Then I just add something like this to Python.param? (For Python 3.6 of course…)

[Python_Executable_3_2]
Type=multilinemultifilename
Label=Python 3.2 Executable
Category=Python Executables
CategoryOrder=0
Index=7
Default=C:\Python32\python.exe;/usr/bin/python
Description=The path to the Python executable. Enter alternative paths on separate lines.

Very close. You just need to update the actual Monitor submitter as well. See attached updated files. I’ll get this pushed into the next SP or one after.

Python.zip (5.11 KB)

Thanks! I am getting an error though:

2017-12-08 11:23:48: Running script PythonSubmission (\\path\deadline_9_dev\custom\scripts\Submission\PythonSubmission.py) 2017-12-08 11:23:48: Traceback (most recent call last): 2017-12-08 11:23:48: File "DeadlineUI/Commands/ScriptCommands.py", line 104, in InnerExecute 2017-12-08 11:23:48: PythonNetException: IOError : (2, 'No such file or directory') 2017-12-08 11:23:48: File "\\path\deadline_9_dev\custom\scripts\Submission\PythonSubmission.py", line 11, in <module> 2017-12-08 11:23:48: imp.load_source( "JobOptionsUI", os.path.join( RepositoryUtils.GetRepositoryPath( "submission/Common/Main", True ), "JobOptionsUI.py" ) ) 2017-12-08 11:23:48:

This looks like it should be fairly easy to solve. However, I looked in the “submission” folder and did not see a “Common” directory, so I searched the entire tree with Eclipse and could not find JobOptionsUI.py. We are on Deadline 9. Was that file added in Deadline 10?

Thanks.

Yea, I believe Mike gave you the changes for Deadline 10. Since it’s not particularly difficult, I’ll whip something for you shortly that fixes it for Deadline 9.

Cheers

Great! Thanks!

Give these attached files a go and let me know how they work for you (make a backup copy before using these):

  • Python.options gets copied to DeadlineRepository9/plugins/Python/Python.options
  • Python.param gets copied to DeadlineRepository9/plugins/Python/Python.param
  • PythonSubmission.py gets copied to DeadlineRepository9/scripts/Submission/PythonSubmission.py

Cheers
D9_python_36.zip (4.07 KB)

Weird. I copied the files from D9_Python_36 into those locations, but I am still getting the same error:

2017-12-08 14:06:28: Running script PythonSubmission (\\path\deadline_9_dev\scripts\Submission\PythonSubmission.py) 2017-12-08 14:06:28: Traceback (most recent call last): 2017-12-08 14:06:28: File "DeadlineUI/Commands/ScriptCommands.py", line 104, in InnerExecute 2017-12-08 14:06:28: PythonNetException: IOError : (2, 'No such file or directory') 2017-12-08 14:06:28: File "\\path\deadline_9_dev\scripts\Submission\PythonSubmission.py", line 11, in <module> 2017-12-08 14:06:28: imp.load_source( "JobOptionsUI", os.path.join( RepositoryUtils.GetRepositoryPath( "submission/Common/Main", True ), "JobOptionsUI.py" ) ) 2017-12-08 14:06:28:

Hmm, which version of Deadline 9 are you on?

I thought we added the Common folder in D10. Looks like I’m wrong… :frowning:

I’ve attached the missing file, it should be unzipped and put in this location:

DeadlineRepository9/submission/Common/Main/JobOptionsUI.py

Should fix the issue, let me know.

Cheers
JobOptionsUI.zip (2.13 KB)

Looks like it’s 9.0.0.18.

That’s a fairly early version of D9, I’d recommend upgrading to the latest d9 (if not 10 :smiley:) when possible.

In the meantime though, let me know if adding that missing file I attached in my last post works

Cheers

Looks like it’s working! I had to copy the files to the following locations:

Deadline_9_dev/submission/Common/Main/JobOptionsUI.py
Deadline_9_dev/scripts/Submission/PythonSubmission.py
Deadline_9_dev/plugins/Python/Python.param
Deadline_9_dev/plugins/Python/Python.options

Thanks a lot!

Privacy | Site terms | Cookie preferences