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
166.45k stars 44.06k forks source link

program stuck #1573

Closed qwe2950531 closed 12 months ago

qwe2950531 commented 1 year ago

Duplicates

Steps to reproduce 🕹

REASONING: I need to create a new Vue.js project in order to complete my task of creating a red-themed website. PLAN:

Current behavior 😯

i want autogpt help me to autobuild vue-project but did't work,have any ideas?

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here
MrUzbek00 commented 1 year ago

Hello everyone I have the same problem

Cannot run - python -m autogpt

And getting this error

Warning: The file 'auto-gpt.json' does not exist.Local memory would not be saved to a file. Please set your OpenAI API key in .env or as an environment variable. You can get your key from https://beta.openai.com/account/api-keys

But I have OpenAI API Key (not GPT-4)

Could you help me, please?

hiteshpatwari commented 1 year ago

Seems like a widespread problem, as it is getting stuck for my nextJS project

PLAN:
-  Create a new NextJS project and install Material UI.\\\\n- Set up the database schema and authentication mechanism to ensure the website is secure.
CRITICISM:  I need to ensure that I am following best practices and that the website is secure.
Attempting to fix JSON by finding outermost brackets
Apparently json was fixed.
NEXT ACTION:  COMMAND = execute_shell ARGUMENTS = {'command_line': 'npx create-next-app my-app'}
Executing command 'npx create-next-app my-app' in working directory 'C:\workspace\Auto-GPT\auto_gpt_workspace'
hiteshpatwari commented 1 year ago

Okay, seems like the issue is that nowadays, all create-x-app requires user prompts to select the options, and Auto-gpt is not able to display it for user input. Two ways to solve the problem:

  1. If a shell command is being executed and requires user input, AUtoGPT let the user decide what to select. so Auto-gpt relenquishes control for few minutes until the process does not require user input.
  2. Auto-GPT interprets shell command prompts and acts as a mediator.
Qoyyuum commented 1 year ago

Hi @hiteshpatwari @qwe2950531 can either of you confirm what is been set in your .env for EXECUTE_LOCAL_COMMANDS?

hiteshpatwari commented 1 year ago

It is set to true. If set to false autogpt will error out.

schellenbergk commented 1 year ago

Same here. EXECUTE_LOCAL_COMMANDS=True

Stuck on:

-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 
Executing command 'npx create-next-app' in working directory './auto_gpt_workspace'
fysoul17 commented 1 year ago

Same here. Stuck.

EXECUTE_LOCAL_COMMANDS=True

-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 
Executing command 'npx create-next-app' in working directory './auto_gpt_workspace'
3265 commented 1 year ago

I encountered the same error as you did. In my case, I made a modification to /Auto-GPT/autogpt/config/config.py as follows:

dotenv_path = Path(__file__).parent.parent.parent / ".env"
print("_____dotenv_path _______", dotenv_path)
load_dotenv(dotenv_path, verbose=True, override=True)

After making this change, the command

$ PYTHONPATH=. python -m autogpt --gpt3only

worked successfully.

github-actions[bot] commented 1 year 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 12 months ago

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