How to get a package installed into a plugins managed environment

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

Answers

  • fchataigner2
    fchataigner2 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 Posts: 143 ✭✭✭✭✭✭✭

    Hi @fchataigner2

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

    Ben

  • ben_p
    ben_p Posts: 143 ✭✭✭✭✭✭✭

    That makes sense, thank you for clarifying!

  • msr
    msr 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…