Closed qwe2950531 closed 12 months 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?
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'
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:
Hi @hiteshpatwari @qwe2950531 can either of you confirm what is been set in your .env
for EXECUTE_LOCAL_COMMANDS
?
It is set to true. If set to false
autogpt will error out.
Same here.
EXECUTE_LOCAL_COMMANDS=True
Stuck on:
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
Executing command 'npx create-next-app' in working directory './auto_gpt_workspace'
Same here. Stuck.
EXECUTE_LOCAL_COMMANDS=True
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
Executing command 'npx create-next-app' in working directory './auto_gpt_workspace'
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.
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.
This issue was closed automatically because it has been stale for 10 days with no activity.
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:
vue create
command to create a new project with the namemy_project
.Current behavior 😯
i want autogpt help me to autobuild vue-project but did't work,have any ideas?
Expected behavior 🤔
No response
Your prompt 📝