-
Notifications
You must be signed in to change notification settings - Fork 43.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file. #1073
Comments
I also face this problem >< |
+1 |
I faced the same issue and ChatGPT solved it for me. Create the missing file: If the 'auto-gpt.json' file is supposed to exist in your project directory, you can simply create a new file with this name. This can be done using a text editor or by running a command in your terminal/command prompt (e.g., touch auto-gpt.json on Unix-based systems or echo.> auto-gpt.json on Windows). |
from the tests files ,and come to integration file.create the file . and the problem is solved. |
I tried creating the auto-gpt.json file everywhere in the folder and still get the same error Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file. How? |
same issue, I'm using macOS Ventura 13.3.1, M1 Pro chip. |
Looks like this is fixed now, just take latest and it should go away. |
Still having the same issue after downloading the latest :( |
For me, it went away after successfully running auto-gpt once. The execution did create auto-gpt.json automatically and used it in subsequent runs. That warning is not an error, something else might be preventing your runs. Please paste the text of the error you are seeing on your terminal. |
Did you configured payment information in openai account? You will get a token without it but API calls will fail. |
ai_config.py tries to get the config from root folder:
This should be changed as well, as app/../ is root of the docker |
having the same issue. I took a random json file and removed its contents and renamed it to auto-gpt and put it in the Auto-GPT folder. now there is no warning message, but it still says "Using memory of type: LocalCache". Then it thinks and gives the same runtime error. Is this due to it not using pinecone? I put the pinecone api key in just as i did the openai api key, as well as the region. I am on the east coast of us though, and for some reason the region is asia-southeast1-gcp, which I thought was odd and could be the issue. Finally in the .env file it says MEMORY_BACKEND=local. Perhaps this needs to be changed? I tried changing it to pinecone but nothing happened. |
I am having the same problem as wgermino I am paying for the chatGPT 'Pro' Subscription. Do I also need to pay to access the API? |
I believe the API requires a separate subscription and a different API key. If I remember right the free key doesn't work for this and the Pro subscription is only for web page access to ChatGPT. (If I did this wrong, I have cataracts & using a single eye @30% AND this was my 1st Github post ever.) |
What is separate subscription and a different API key? |
For Windows you can also use the Command prompt to enter "copy con auto-gpt.json", hit enter, then hit CTRL+Z and hit enter again. This will create an empty file, without the period in it. For those who are curious, copy con tells the shell to copy what you type from the keyboard console and write it to a file. Within the copy con command CTRL+Z causes it to place the end of file, save and exit as soon as you hit enter. Dunno if this helps or not. |
It produced an error when I made an empty file. Instead, it must contain '{}' inside it. That solves the problem. |
Duplicate of #1189. @888yyh would you close this one issue if it indeed is the same thing? (I had this issue too - It's that we haven't opted into "paid account" on OpenAI's billing page. The I'm making an MR as we speak to update the README section on OpenAI's API key, to make this clear. |
Thank you. Yes, that was the issue---my OpenAi account. I added payment info and now it works. Thanks! |
Great shortcut. Thank you! |
|
I created the 'auto-gpt.json' file and copied it to EVERY Auto-GPT subdirectory. Then I ran Main.py a couple times and afterward, the ONLY 'auto-gpt.json' file that changed was the one in the scripts folder where Main.py is located. Afterwards, I deleted all the extra 'auto-gpt.json' files and ran Main.py again. Since it still seemed to work correctly, I am assuming that it belongs in the Scripts folder, NOT in the root folder. I am currently on the Stable branch, if that helps or matters. |
Into the main auto-gpt directory create a JSON file "auto-gpt" using the following lines:
|
使用命令行 touch auto-gpt.json |
this did suppress the error on my windows workstation |
This has nothing to do with this issue, go to discord reddit or somewhere else. |
I don't know why they start doing things that don't work from the beginning. I get the same error as well. They should be more aware of the errors they leave in the updates. |
Do I have to set up a paid account to use it? |
Yes. You need a paid subscription. This is separate to the chatGPT pro subscription. |
Check if you are using Python 3.10 , then re-install the requirements |
Just to say I have the same issue, running latest pull from master (yesterday), notes:
Don't seem to be able to get rid of the error |
I solved this problem by using Redis as memory (see https://github.com/Significant-Gravitas/Auto-GPT#memory-backend-setup) |
@stevenjohn please post your log when reporting an issue. Does it help if you create a blank JSON file with the content |
Instead of getting continous dialogue I return this Y:\AI\AutoGPT\Auto-GPT>python scripts/main.py --continous Y:\AI\AutoGPT\Auto-GPT>python -m autogpt It then makes it manual mode instead of continuous. Also I continue to get .json issues despite making a auto-gpt.json file. |
You need to run python -m autogpt --continuous |
I created a blank auto-gpt.json file and the error went away. |
I used a docker setup. I cloned this repo: then I checked, if the .env.template was there, copied it's content with this: so I could add my open api key and set the value. I saw, that I had no 'auto-gpt.json', I created one with touch and let it empty. I builded and run the container using this:
I receive this error message: Edit: this is the fix I resolved this by doing the following (Mac OS, M1, Running docker): Create an empty file in the root folder: touch auto-gpt.json Modify the Dockerfile, find this section: Copy the application filesCOPY --chown=appuser:appuser autogpt/ ./autogpt Add this: Copy auto-gpt.jsonCOPY --chown=appuser:appuser auto-gpt.json . Errors goes away. |
Duplicates
Steps to reproduce 🕹
No response
Current behavior 😯
Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file.
Using memory of type: LocalCache
Think....
Expected behavior 🤔
Could you tell me what the problem is? Where is auto-gpt.json?
Your prompt 📝
# Paste your prompt here
The text was updated successfully, but these errors were encountered: