Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
MIT License
167.24k stars 44.18k forks source link

Running the ./run agent start agent name error #7172

Closed fbanespo1 closed 1 month ago

fbanespo1 commented 4 months ago

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?

patrafter1999 commented 4 months ago

Got the same error.

matepaiva commented 4 months ago

same here

fbanespo1 commented 4 months ago

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'

thomas-waite commented 4 months ago

Same issue

ethanzu1193 commented 4 months ago

Same issue

grant-d commented 4 months ago

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

crudo0-arch commented 4 months ago

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?

codeananda commented 4 months ago

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

aleskalfas commented 4 months ago

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
codeananda commented 3 months ago

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

microNewLife commented 3 months ago

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?

aleskalfas commented 3 months ago

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

3.11 ☝️

WangShaoyu1 commented 3 months ago

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

kcze commented 3 months ago

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 commented 3 months ago

I couldn't pinpoint a single problem;

minhanphanle commented 3 months ago

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'

github-actions[bot] commented 1 month ago

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] commented 1 month ago

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