AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Error When Trying to Run for First time

Open ronrevog opened this issue 1 year ago • 2 comments

pymilvus not installed. Skipping import. Warning: The file 'auto-gpt.json' does not exist.Local memory would not be saved to a file.

ive done a search in issues but cant seem to find answer any idea?

thanks!

ronrevog avatar Apr 15 '23 18:04 ronrevog

pymilvus not installed. Skipping import. Warning: The file 'auto-gpt.json' does not exist.Local memory would not be saved to a file.

ive done a search in issues but cant seem to find answer any idea?

thanks!

You can manually create a file auto-gpt.json, open it with notepad, put '{}' in it, and run again. Will fix the local memory issue.

Nickonomic avatar Apr 15 '23 18:04 Nickonomic

Also be sure to be in the stable branch

pswami avatar Apr 15 '23 18:04 pswami

the json file fixed the Warning error, but this error is still there:

pymilvus not installed. Skipping import.

am i inputting the open ai api incorrectly? im just copying and pasting into the .env file in right spot i think.

ronrevog avatar Apr 15 '23 19:04 ronrevog

Just a simple {} should suffice

Pegasust avatar Apr 15 '23 21:04 Pegasust

yes this has fixed the error. thanks

guppyO avatar Apr 15 '23 21:04 guppyO

Where exactly do you need to put the json file?

PopkenDev avatar Apr 15 '23 21:04 PopkenDev

Inside the auto-gpt folder (the main folder)

guppyO avatar Apr 16 '23 01:04 guppyO

Error when running for the first time v0.2.0, missing some requirements module.

> python -m autogpt
pymilvus not installed. Skipping import.
Warning: The file 'auto-gpt.json' does not exist.Local memory would not be saved to a file.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "...\Auto-GPT\autogpt\__main__.py", line 4, in <module>
    from autogpt.agent.agent import Agent
  File "...\Auto-GPT\autogpt\agent\__init__.py", line 1, in <module>
    from autogpt.agent.agent import Agent
  File "...\Auto-GPT\autogpt\agent\agent.py", line 2, in <module>
    from autogpt.app import execute_command, get_command
  File "...\Auto-GPT\autogpt\app.py", line 27, in <module>
    from autogpt.commands.twitter import send_tweet
  File "...\Auto-GPT\autogpt\commands\twitter.py", line 1, in <module>
    import tweepy
ModuleNotFoundError: No module named 'tweepy'

Fix

  1. Create a auto-gpt.json file in the main Auto-GPT folder and add {} to the file.
  2. Install the missing module.
  • pip install pymilvus
  • pip install tweepy
  1. Run python -m autogpt again.

nurhakam avatar Apr 16 '23 04:04 nurhakam

Closing as duplicate of #1073

Pwuts avatar Apr 19 '23 15:04 Pwuts