kurtosis-tech / autogpt-package

It's like Auto-GPT met Brew. The easiest and fastest way to get started with AutoGPT with any backend of your choice & whatever plugins you may need
MIT License
158 stars 20 forks source link

Can't run AutoGPT with multiple plugins #30

Closed Peeeekay closed 1 year ago

Peeeekay commented 1 year ago

While working with AutoGPT we came across the following bug -

When we try to run kurtosis autogpt with multiple official plugins i.e they belong to the same repo ( https://github.com/Significant-Gravitas/Auto-GPT-Plugins)

kurtosis run github.com/kurtosis-tech/autogpt-package --enclave autogpt '{"OPENAI_API_KEY": "YOUR_API_KEY_HERE", "ALLOWLISTED_PLUGINS": "twitter, email"}' - both twitter and email are plugins available in official autogpt plugin repo.

We see this error

There was an error executing Starlark code 
An error occurred executing instruction (number 9) at github.com/kurtosis-tech/autogpt-package[130:14]:
  exec(service_name="autogpt", recipe=ExecRecipe(command=["mkdir", "/app/autogpt/plugins"]))
  Caused by: Exec returned exit code '1' that is not part of the acceptable status codes '[0]', with output:
  "mkdir: cannot create directory ‘/app/autogpt/plugins’: File exists\n"

Error encountered running Starlark code.

This happens because we try to create the same directory multiple times while setting up the plugins for autogpt