AutoGPT
AutoGPT copied to clipboard
Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file.
Duplicates
- [X] I have searched the existing issues
Steps to reproduce 🕹
Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file.
Current behavior 😯
Expected behavior 🤔
No response
Your prompt 📝
# Paste your prompt here
Just open the AutoGPT file in VScode and create a new file called "auto-gpt.json" and save it to the main folder
Just open the AutoGPT file in VScode and create a new file called "auto-gpt.json" and save it to the main folder
If you still get errors after this just use "python -m autogpt --debug" in the command line
I had to run it a couple of times before it fixed all the errors. Try running it again
The failed response after 5 retries is potentially due to you not paying platform.openai.com for API access. they'll give you the API key before you set up billing.
Just open the AutoGPT file in VScode and create a new file called "auto-gpt.json" and save it to the main folder
can this be a .txt file?
nope, it's gotta be a .json file
okay so I went into .devcontainer file, copied devcontainer.json then pasted in autogpt file, opened it in text file, deleted everything and renamed it auto-gpt.json and I still get 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
Just open the AutoGPT file in VScode and create a new file called "auto-gpt.json" and save it to the main folder
When you said open the AutoGPT file in VScode, which file did you mean? Also I don't have auto-gpt.json file here.
okay so I went into .devcontainer file, copied devcontainer.json then pasted in autogpt file, opened it in text file, deleted everything and renamed it auto-gpt.json and I still get 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
It was the same for me.
just create a new file name auto-gpt.json in main folder
just create a new file name auto-gpt.json in main folder Ok, did that now when I try
just create a new file name auto-gpt.json in main folder
Does this look right to you?
just create a new file name auto-gpt.json in main folder Ok, did that now when I try
I have the same issue is there a fix?
just create a new file name auto-gpt.json in main folder Ok, did that now when I try
I have the same issue is there a fix?
I haven't found one
@GrantEagles @DrReefer you need to get your API keys and set them up in the .env
file. The .env
file should be copied and pasted from .env.template
file.
Instructions on which API key obtained from where are in the README.md (Step 5 under Installation)
@GrantEagles @DrReefer you need to get your API keys and set them up in the
.env
file. The.env
file should be copied and pasted from.env.template
file.Instructions on which API key obtained from where are in the README.md (Step 5 under Installation)
When I cloned, it doesn't have .env.template only has .env
@DrReefer please check the repo. There is a .env.template
file. Or please re git clone the repo again.
@DrReefer - please let me know if you found a solution. I followed the same steps as you and received the same error.
@DrReefer - please let me know if you found a solution. I followed the same steps as you and received the same error.
Hey, make sure the .env file is not a text file. I've was able to get it to work.
"make sure the .env file is not a text file. I've was able to get it to work." kinda works but The file 'auto-gpt.json' does not exist.
C:\AutoGPT\Auto-GPT>python -m autogpt Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file. Welcome to Auto-GPT! Enter the name of your AI and its role below. Entering nothing will load defaults. Name your AI: For example, 'Entrepreneur-GPT' AI Name:
Can some one please confirm if paying the open AI API solved this issue?
I've had the same issue, I think it comes down to the fact that it can't find an outer bracket somewhere, even after you have the .json file. I'm probably wrong though.
"make sure the .env file is not a text file. I've was able to get it to work." kinda works but
The file 'auto-gpt.json' does not exist.
C:\AutoGPT\Auto-GPT>python -m autogpt Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file. Welcome to Auto-GPT! Enter the name of your AI and its role below. Entering nothing will load defaults. Name your AI: For example, 'Entrepreneur-GPT' AI Name:
Create a blank file and name it auto-gpt.json it worked smoothly afterwards.
also you need to setup billing for Chatgpt api or it’s not going to work.
Can some one please confirm if paying the open AI API solved this issue?
Well, I setup my billing and still getting the same message, the .env is a env file type not a text or template as my mac was taking it, and the API key is there so not sure what else to try. has anyone got this working on mac?
how to setup billing for Chatgpt api?
how to setup billing for Chatgpt api? @aggelos-michael-papadopoulos
You should see it as setup payment method or something like that
Can some one please confirm if paying the open AI API solved this issue?
Well, I setup my billing and still getting the same message, the .env is an env file type, not a text or template as my Mac was taking it, and the API key is there so not sure what else to try. anyone got this working on mac?
I have finally got it, in my case, the issue was that the Mac file extension was for some reason taking the .env as an Adobe Illustrator file type, I removed that file type from the file info and then it worked.
我也用的是mac
Can some one please confirm if paying the open AI API solved this issue?
Well, I setup my billing and still getting the same message, the .env is an env file type, not a text or template as my Mac was taking it, and the API key is there so not sure what else to try. anyone got this working on mac?
I have finally got it, in my case, the issue was that the Mac file extension was for some reason taking the .env as an Adobe Illustrator file type, I removed that file type from the file info and then it worked.
Yes! this worked for me as well :)