How to get a package installed into a plugins managed environment

Solved!
ben_p
Level 5
How to get a package installed into a plugins managed environment

Hi all,

I am writing a plugin that requires an additional package, I have added it to requirements.txt file in plugins "spec" folder and rebuilt the environment several times, but this package is still not showing up in the environment - is there an additional step I need to take to force it through?

Thanks,
Ben

0 Kudos
1 Solution
fchataigner2
Dataiker

yes, code envs for plugins are immutable so during dev you'll need to create one for each iteration of the required packages

View solution in original post

5 Replies
fchataigner2
Dataiker

Hi,

if after the addition of the package you created new code envs from the plugin's Summary tab, and still don't have the package in the new code envs, as can be checked in the 'installed packages' tab of the code env in Administration > Code envs, can you attach the files from under 'code-env' in your plugin?

0 Kudos
ben_p
Level 5
Author

Hi @fchataigner2 

This is an existing environment - are you saying I should create a new one?

Ben

0 Kudos
fchataigner2
Dataiker

yes, code envs for plugins are immutable so during dev you'll need to create one for each iteration of the required packages

ben_p
Level 5
Author

That makes sense, thank you for clarifying! ๐Ÿ™‚

0 Kudos
msr
Level 2

Does that mean - if we are updating the plugin & it needs new packages, we need to create a new code environment for plugin?

@fchataigner2 

Thanks,
Mahendra
0 Kudos