AWS Thinkbox Discussion Forums

How to install more modules to Deadline Python

Hi,

I’m writing a custom event script for the python plugin. What’s the best way to install new modules to the running python application being used by deadline? For example, I’m importing the jwt module from an outside site-packages directory but its throwing an error that it cannot find the dll. I’m assuming this is the case because jwt wasn’t built with the running version of python.

Any thoughts?

What is the proper way to import outside python modules? Is there a way to build virtualenvs, or install wheels into the deadline python environment?

If you go to Tools → Repository Options → Python Settings, you can enter additional include paths.
Point this to a venv and you’re done. Preferably match Deadline’s python (3.7?) in the venv.

1 Like

As of 10.3 we’re on Python 3.10. :slight_smile:

1 Like

Is it possible to build the venv from deadline’s python executable?

I don’t know enough about venv to say. I suspect not since Deadline actually runs Python for .NET, which likely complicates things.

I’d love to be corrected though, it’d be handy!

We tried creating a venv with dpython, but it did not work - there were some library errors. Doesn’t mean it’s not possible, though.
Thus you might start from another python 3.10 or 3.7.

Privacy | Site terms | Cookie preferences