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?
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.
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?
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.