Check out the first Dataiku 8 Deep Dive focusing on Productivity on October 29th Read More

How to change code env for a custom plugin

Level 1
How to change code env for a custom plugin
I'm trying to change the code env for a plugin that i develpped to add new library in it.
4 Replies
Dataiker
Dataiker

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,



 

0 Kudos
Level 1

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'

0 Kudos
Dataiker
Dataiker

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

0 Kudos
Level 1

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'
 
0 Kudos
Labels (1)