How to change code env for a custom plugin
Best Answer
-
Hi,
You can define the requirement for your code env as stated here in the doc: https://doc.dataiku.com/dss/latest/plugins/reference/other.html#code-environments
Cheers,
Answers
-
I am trying to use a Python36 environment with the package 'rpy2' .
The environment gets created and gets attached with the plugin.. but wile loading the plugin's UI, it throws the following error:
External code failed
Failed to start python worker : <class 'ImportError'> : cannot import name 'Set'
Traceback (most recent call last): File "/home/dataiku/dataiku-dss-5.0.0/python/dataiku/customui/server.py", line 29, in serve python2_friendly_exec(code, ctx, ctx) File "/home/dataiku/dataiku-dss-5.0.0/python/dataiku/customui/server.py", line 13, in python2_friendly_exec exec(code, ctx_global, ctx_local) File "<string>", line 3, in <module>ImportError: cannot import name 'Set'
-
I am trying to use a Python36 environment with the package 'rpy2' .
The environment gets created and gets attached with the plugin.. but wile loading the plugin's UI, it throws the following error:
External code failed
Failed to start python worker : <class 'ImportError'> : cannot import name 'Set'
-
Hi,
Would you be able to share your code or a link to a public git repo so we can have a look?
Cheers,
Alex