Deadline and Python Subprocess

Is it possible to import subprocess into Deadline Plugin function?

Even after explicitly appending the sys.path to directory where the subprocess module resides Deadline throw an error message:

An error occurred in the “OnJobFinished” function in events plugin ‘MyCoolDeadlinePlugin’: An error occurred in function “OnJobFinished” the event plugin script file “\Deadline\DeadlineRepository\events\MyCoolDeadlinePlugin\MyCoolDeadlinePlugin.py”: No module named signal (Deadline.Events.DeadlineEventPluginException)

at Deadline.Events.DeadlineEventPlugin.HandlePythonError(String message, Exception e)
at Deadline.Events.DeadlineEventPlugin.OnJobFinished(Job job, String[] auxiliaryFilenames)
at Deadline.Events.DeadlineEventManager.OnJobFinished(Job job, String[] auxiliaryFilenames, DeadlineController deadlineController)

Please let me know if Python used by Deadline is compatible with subprocess.popen. If not, what would be an alternative way to run an external executable with an intend to capture its output to the variable.
I just don’t want to go an entire route of defining a custom Deadline plugin to get this simple task done. Thanks in advance!

It looks like your error doesn’t have to do with subprocess since it says “No module named signal”.
import subprocess should be enough. You shouldn’t have to append to your sys.path.

It definitely should be possible. We ship all of standard CPython along now, so it should work.