How to get a package installed into a plugins managed environment

ben_p
ben_p Neuron 2020, Registered, Neuron 2021, Neuron 2022, Dataiku Frontrunner Awards 2021 Participant Posts: 143 ✭✭✭✭✭✭✭

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

Best Answer

  • fchataigner2
    fchataigner2 Dataiker Posts: 355 Dataiker
    Answer ✓

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

Answers

  • fchataigner2
    fchataigner2 Dataiker Posts: 355 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?

  • ben_p
    ben_p Neuron 2020, Registered, Neuron 2021, Neuron 2022, Dataiku Frontrunner Awards 2021 Participant Posts: 143 ✭✭✭✭✭✭✭

    Hi @fchataigner2

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

    Ben

  • ben_p
    ben_p Neuron 2020, Registered, Neuron 2021, Neuron 2022, Dataiku Frontrunner Awards 2021 Participant Posts: 143 ✭✭✭✭✭✭✭

    That makes sense, thank you for clarifying!

  • msr
    msr Partner, Registered Posts: 9 Partner

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

    @fchataigner2

Setup Info
    Tags
      Help me…