AWS Thinkbox Discussion Forums

Running Deadline code from Visual Studio Code

Hello,

I’m trying to code on visual studio code and run my code for Deadline. I’m not able to run my code from visual studio.

Here is a simple snippet of my code :
from Deadline.Scripting import *

def main( *args ):
selectedJobs = MonitorUtils.GetSelectedJobs()
print(selectedJobs)

Here is my error :

from Deadline.Scripting import *
ModuleNotFoundError: No module named ‘Deadline’

My operating system is the following: macOS Catalina

That class is only available if you run it via Deadline command. https://docs.thinkboxsoftware.com/products/deadline/10.0/1_User%20Manual/manual/scripting-overview.html

The package that you can import and use directly in IDE is the stand-alone API
https://docs.thinkboxsoftware.com/products/deadline/10.0/1_User%20Manual/manual/standalone-python.html

2 Likes
Privacy | Site terms | Cookie preferences