Plugins Shared Code in containerized environment

AsishM
AsishM Registered Posts: 4

I have a custom plugin with some shared code in the "python-lib" directory that I'd like to import and use in other places.

Following this link - https://dss.grc-mlops.com/admin/code-envs/design/python/plugin_scaler-engine_managed/

The following code works in a regular notebook running on DSS. However, if I change the kernel to one that runs in a container - it results in an ImportError

Code;

import dataiku
plugin_id = "my_custom_plugin"
package_name = "foo"
dataiku.use_plugin_libs(plugin_id)
module = dataiku.import_from_plugin(plugin_id, package_name)

Error when running in a container:

ImportError: No module named 'foo' 

Best Answer

Answers

Setup Info
    Tags
      Help me…