How to change code env for a custom plugin

Solved!
Trimech
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.
1 Solution
UserBird
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,



 

View solution in original post

0 Kudos
4 Replies
UserBird
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
keshri99
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
Alex_Combessie
Dataiker Alumni

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
keshri99
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