Skip to content

How to use external libraries in a controller? #107

Answered by emrekiciman
mindol asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mindol,

Right now, the python controller only accepts a single python file as its input. So, the only option to add new packages is to recompile a new python controller image with the packages you need---as you found--in the pyctrl/lib folder. That's inconvenient, but should be do-able. You might need to modify some packages if they depend on functionality that is not supported inside the Wasm sandbox.

It would be a nice addition to extend the python controller to accept a set of python files, including new modules, instead of only running the 1 input file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mindol
Comment options

Answer selected by mindol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants