Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the deletion of $ENV_PATH in autogpts/forge/setup script might fail the launching of an agent #7063

Open
1 task done
predator17 opened this issue Mar 31, 2024 · 1 comment

Comments

@predator17
Copy link

predator17 commented Mar 31, 2024

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Linux

Which version of AutoGPT are you using?

Master (branch)

Do you use OpenAI GPT-3 or GPT-4?

GPT-4

Which area covers your issue best?

Installation and setup

Describe your issue.

in rocky linux, when following the QUICKSTART.md in a miniconda environment, it failed to launch an agent via executing
./run agent start myagent command.
i found the issue was caused by a script from "autogpts/forge/setup", i have no idea why it should remove the poetry environment, in my case i simply comment out the code rm -rf $ENV_PATH from the script, then my agent can be launched properly.

i'd like to suggest the setup AutoGPT/autogpts/forge/setup script should be modified as following:

#!/bin/bash
OS_DISTRO=$(grep -w NAME /etc/os-release | cut -d'=' -f2 | tr -d '"')

ENV_PATH=$(poetry env info --path)

if [ "$OS_DISTRO" != "Rocky Linux" ]; then
    if [ -d "$ENV_PATH" ]; then
        rm -rf $ENV_PATH
        echo "Removed the poetry environment at $ENV_PATH."
    else
        echo "No poetry environment found."
    fi
else
    echo "Running on Rocky Linux. The poetry environment at $ENV_PATH will not be removed."
fi

 poetry install --extras benchmark
 echo "Setup completed successfully."
 exit 0

Upload Activity Log Content

No response

Upload Error Log Content

No response

@dbuos
Copy link

dbuos commented Apr 13, 2024

I have the same issue, MacOS and miniconda env :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@dbuos @predator17 and others