[Fixed] Warning: The file ‘AutoGpt.json’ does not exist. Local memory would not be saved to a file.

Say, you want to spawn your own AutoGPT and you get the error Warning: The file 'AutoGpt.json' does not exist. Local memory would not be saved to a file: πŸ˜‘πŸ‘‡

[ec2-user@ip-172-31-19-40 Auto-GPT]$ python3 -m autogpt
Warning: The file 'AutoGpt.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:

This one will be fixed easily.

Hit CTRL+C to close the AutoGPT program. Then run the following command in your Linux shell to create the file AutoGpt.json in your local environment.

echo "" > AutoGpt.json

If you’re using Windows, you can simply open your editor and store an empty file as AutoGPT.json.

Finally, run AutoGPT again by typing python -m autogpt or python3 -m autogpt. VoilΓ .

The error will now have disappeared! πŸ‘Όβ™₯️

If you still get the error, try running the following command to figure out more information in AutoGPT debugging mode:

python -m autogpt --debug

You may also want to check out the following interesting tutorial:

πŸ‘‰ Recommended: How I Created a High-Performance Extensible ChatGPT Chatbot with Python (Easy)