AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Unable to start an agent. cli.py errors out at cli.py , FileNotFoundError: [Errno 2] No such file or directory: './setup'

Open swatakit opened this issue 2 years ago • 7 comments

⚠️ Search for existing issues first ⚠️

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

Which Operating System are you using?

Windows

Which version of AutoGPT are you using?

Latest Release

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

GPT-3.5

Which area covers your issue best?

Installation and setup

Describe your issue.

Hi, I have setup autogpt on windows 11, and have successfully ./run setup

  • githib login and token setup
  • able to create agent
  • able to add agent to arena

but when i try to start agent, I got file not found error from cli.py --> looking for ./setup

the repo was forked and cloned 6 Jan, I don't see setup but I only see setup.sh and has already convert dos2unix on it

Can someone help me please setup

Upload Activity Log Content

No response

Upload Error Log Content

No response

swatakit avatar Jan 06 '24 10:01 swatakit

I have the same situation.

ChestnutLons avatar Jan 11 '24 16:01 ChestnutLons

Make sure to run dos2unix autogpts/<agent name>/setup when your pwd is at the root of the installation.

You will also need to run dos2unix autogpts/<agent name>/run_benchmark and dos2unix autogpts/<agent name>/run

Kheiden avatar Jan 19 '24 05:01 Kheiden

Make sure to run dos2unix autogpts/<agent name>/setup when your pwd is at the root of the installation.

You will also need to run dos2unix autogpts/<agent name>/run_benchmark and dos2unix autogpts/<agent name>/run

This will need to be added into the quickstart guide here

MrCredible avatar Jan 30 '24 03:01 MrCredible

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Mar 21 '24 01:03 github-actions[bot]

I was getting the same issue, but I fixed it with the following changes. In cli.py, I changed the 3 command lines that are using the subprocess.Popen() like setup_process = subprocess.Popen(["./setup"], cwd=agent_dir) by the following setup_process = subprocess.Popen(["bash ./setup"], shell=True, cwd=agent_dir) This tells subprocess.Popen to run the command bash /path/to/setup in a shell, which should execute your setup script. Now it is working fine.

zenetio avatar Mar 24 '24 12:03 zenetio

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar May 14 '24 01:05 github-actions[bot]

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Jul 04 '24 01:07 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Jul 14 '24 01:07 github-actions[bot]