AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Running the ./run agent start agent name error

Open fbanespo1 opened this issue 1 year ago • 16 comments

Hi Team,

I have an issue when running the command in your documentation: ./run agent start tonyagi ⌛ Running setup for agent 'tonyagi'... Path /home/ec2-user/projects/AutoGPT/agents/benchmark for agbenchmark does not exist Removed the poetry environment at /home/ec2-user/projects/AutoGPT/venv. Path /home/ec2-user/projects/AutoGPT/agents/benchmark for agbenchmark does not exist

[Errno 2] No such file or directory: 'python' Setup completed successfully.

⌛ (Re)starting benchmark server... Path /home/ec2-user/projects/AutoGPT/agents/benchmark for agbenchmark does not exist

[Errno 2] No such file or directory: 'python' Traceback (most recent call last): File "/home/ec2-user/projects/AutoGPT/cli.py", line 501, in cli() File "/home/ec2-user/projects/AutoGPT/venv/lib64/python3.9/site-packages/click/core.py", line 1157, in call File "/home/ec2-user/projects/AutoGPT/venv/lib64/python3.9/site-packages/click/core.py", line 1078, in main File "/home/ec2-user/projects/AutoGPT/venv/lib64/python3.9/site-packages/click/core.py", line 1688, in invoke File "/home/ec2-user/projects/AutoGPT/venv/lib64/python3.9/site-packages/click/core.py", line 1688, in invoke File "/home/ec2-user/projects/AutoGPT/venv/lib64/python3.9/site-packages/click/core.py", line 1434, in invoke File "/home/ec2-user/projects/AutoGPT/venv/lib64/python3.9/site-packages/click/core.py", line 783, in invoke File "/home/ec2-user/projects/AutoGPT/cli.py", line 152, in start wait_until_conn_ready(8080) File "/home/ec2-user/projects/AutoGPT/cli.py", line 497, in wait_until_conn_ready raise TimeoutError(f"Port {port} did not open within {timeout} seconds") TimeoutError: Port 8080 did not open within 30 seconds

My python command is python3 Can you help fix it please?

fbanespo1 avatar May 26 '24 08:05 fbanespo1

Got the same error.

patrafter1999 avatar May 26 '24 23:05 patrafter1999

same here

matepaiva avatar May 28 '24 01:05 matepaiva

After installing agbenchmark same issue ./run agent start tonyagi ⌛ Running setup for agent 'tonyagi'... Directory /Users/tonyprojects/Auto-GPT/agents/benchmark for agbenchmark does not seem to be a Python package Removed the poetry environment at /Users/Tony/projects/Auto-GPT/venv. Directory /Users/Tony/projects/Auto-GPT/agents/benchmark for agbenchmark does not seem to be a Python package

[Errno 2] No such file or directory: 'python' Setup completed successfully.

⌛ (Re)starting benchmark server... Directory /Users/Tony/projects/Auto-GPT/agents/benchmark for agbenchmark does not seem to be a Python package

[Errno 2] No such file or directory: 'python'

fbanespo1 avatar May 28 '24 07:05 fbanespo1

Same issue

thomas-waite avatar May 29 '24 23:05 thomas-waite

Same issue

ethanzu1193 avatar May 30 '24 05:05 ethanzu1193

I got past this issue by following this advice: https://stackoverflow.com/a/77915256 Take note of the critical warning about performance though

grant-d avatar May 30 '24 18:05 grant-d

Same issue

I got past this issue by following this advice: https://stackoverflow.com/a/77915256 Take note of the critical warning about performance though

wich one?

crudo0-arch avatar Jun 05 '24 11:06 crudo0-arch

Also not working for me. Using WSL windows. Quick start guide is useless

codeananda avatar Jun 06 '24 15:06 codeananda

Three steps helped me:

  1. Checkout tag 0.5.1
  2. Setup venv with python version 3.11 not 3.12!
  3. After agent creation I had to comment out command that was removing venv env in the agent setup file AutoGPT/autogpts/MyBestAgent/setup:
#  ENV_PATH=$(poetry env info --path)
#  if [ -d "$ENV_PATH" ]; then
#      rm -rf $ENV_PATH
#      echo "Removed the poetry environment at $ENV_PATH."
#  else
#      echo "No poetry environment found."
#  fi

aleskalfas avatar Jun 06 '24 18:06 aleskalfas

Ahh ok, I was using python 3.10. Didn't realise you had to use 3.12. Will try this again soon.

Update: typo above, you need to use python 3.11

codeananda avatar Jun 10 '24 08:06 codeananda

Three steps helped me:

  1. Checkout tag 0.5.1
  2. Setup venv with python version 3.11 not 3.12!
  3. After agent creation I had to comment out command that was removing venv env in the agent setup file AutoGPT/autogpts/MyBestAgent/setup:
#  ENV_PATH=$(poetry env info --path)
#  if [ -d "$ENV_PATH" ]; then
#      rm -rf $ENV_PATH
#      echo "Removed the poetry environment at $ENV_PATH."
#  else
#      echo "No poetry environment found."
#  fi

not work for me , so is this a bug only in WSL?

microNewLife avatar Jun 10 '24 12:06 microNewLife

Ahh ok, I was using python 3.10. Didn't realise you had to use 3.12. Will try this again soon

3.11 ☝️

aleskalfas avatar Jun 10 '24 12:06 aleskalfas

Three steps helped me:

  1. Checkout tag 0.5.1
  2. Setup venv with python version 3.11 not 3.12!
  3. After agent creation I had to comment out command that was removing venv env in the agent setup file AutoGPT/autogpts/MyBestAgent/setup:
#  ENV_PATH=$(poetry env info --path)
#  if [ -d "$ENV_PATH" ]; then
#      rm -rf $ENV_PATH
#      echo "Removed the poetry environment at $ENV_PATH."
#  else
#      echo "No poetry environment found."
#  fi

This can work, switch to tag autogpt-v0.5.1. python =3.11.x,it can work..... why in the master branch ,it cannot work, variety of errors, the offical team can solve it or make a decription for all

WangShaoyu1 avatar Jun 12 '24 01:06 WangShaoyu1

Thanks for bringing up the issue, we're investigating it. Using poetry shell and then running agents, or switching to python 3.11 (poetry env use python3.11) might help.

kcze avatar Jun 13 '24 13:06 kcze

I couldn't pinpoint a single problem;

  • Some of those issues might have been fixed recently, so try downloading/cloning the repo again (especially problem with installing multidict when using Python 3.12)
  • Please use Python 3.10 and up
  • benchmark is disabled when running agents for now, so it shouldn't cause problems

kcze avatar Jun 17 '24 15:06 kcze

Hi guys,

Initially I faced the same problem with the OP and after changing to python3.11 it throws error with the 'click' module even though it's installed. Any help is appreciated!

(base) ➜ AutoGPT git:(master) ✗ ./run agent start test_agent Requirement already satisfied: click in /opt/homebrew/lib/python3.11/site-packages (8.1.7) Traceback (most recent call last): File "/Users/justcuriousan/GitHub/AutoGPT/cli.py", line 8, in import click ModuleNotFoundError: No module named 'click'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/justcuriousan/GitHub/AutoGPT/cli.py", line 13, in import click ModuleNotFoundError: No module named 'click'

minhanphanle avatar Jun 30 '24 08:06 minhanphanle

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 Aug 20 '24 01:08 github-actions[bot]

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

github-actions[bot] avatar Aug 31 '24 01:08 github-actions[bot]

same with ne

yygqn avatar Apr 21 '25 10:04 yygqn