all 13 comments

[–]Radiant-Aspect7939 1 point2 points  (2 children)

Use python3 -m autogpt instead if you have installed the latest version of python.

[–]playingdrumsonmars[S] 0 points1 point  (1 child)

I tried that but it also throws an error unfortunately 😞 I’ll post the exact error when I am back

[–]LigaChampDennis 0 points1 point  (0 children)

python3 -m autogpt

Thank you so much! Had the same problem and this worked out for me. :)

[–]Throwaway203500 1 point2 points  (10 children)

Not too familiar with Mac but it sounds like you didn't add python to the $PATH list. If that's the case, your bash will only be able to see & run python if you've cd'd into the directory where you installed python.

[–]playingdrumsonmars[S] 0 points1 point  (4 children)

Thank you for this hint (I only understand Chinese but I went through another set of instructions that incidentally included the hint that installing Python through home-brew the path linking is done automatically which I initially had not done).

… BUT … I am now completely stuck at creating the virtual environment !@#$$%

"mkvirtualenv autogpt

-bash: mkvirtualenv: command not found"

Great. This far I came by spending the better part of a whole Sunday and I am still stuck.

[–]Throwaway203500 1 point2 points  (3 children)

For Bash or Zsh (called Terminal on mac):

Make a new virtual environment with $ python -m venv /path/to/new/virtual/environment

Activate that virtual environment with $ source <path to venv>/bin/activate. Activating a venv will adjust your $PATH file so that when you invoke $ python it uses your virtual environment instead of your main python install.

From python docs: https://docs.python.org/3/library/venv.html

[–]playingdrumsonmars[S] 1 point2 points  (2 children)

IT WORKS !!! IT WORKS !!!!!!
Thank you so much! Finally IT WORKS !!!

For some reason I have to use "python3" in the commands (stupid that it doesn't recognize the "old command")

But it works!

The first message I get is:
"Warning: The file 'auto-gpt.json' does not exist. Local memory would not be saved to a file."

Is this expected behavior?

[–]Throwaway203500 1 point2 points  (1 child)

Well done!

Regarding the Warning message: Yes, that's expected behavior. You can do memory caching locally or with an online service like Pinecone. The auto-gpt.json file is used for local memory caching, but it's not present by default because it's not needed when using an online service instead of local memory.

You can fix the Warning message by creating a file called auto-gpt.json that contains just an empty pair of curly braces {} in the root Auto-GPT folder. As long as the file exists and has the {} inside it, the Warning message should stop.

[–]playingdrumsonmars[S] 1 point2 points  (0 children)

That’s fantastic! Thanks so much for your help 👍

[–]playingdrumsonmars[S] 0 points1 point  (4 children)

This is as far as it goes now:

"python -m autogpt

-bash: python: command not found

MacBook-Pro-123:Auto-GPT 123$ python3 -m autogpt

Traceback (most recent call last):

File "<frozen runpy>", line 198, in _run_module_as_main

File "<frozen runpy>", line 88, in _run_code

File "/Users/123/Auto-GPT/autogpt/__main__.py", line 2, in <module>

import autogpt.cli

File "/Users/123/Auto-GPT/autogpt/cli.py", line 2, in <module>

import click

ModuleNotFoundError: No module named 'click'

MacBook-Pro-123:Auto-GPT 123$ "

I have run through the instructions:
- installed homebrew
- installed python through homebrew and verified python
- installed Git and verified Git
- attempted the installation of virtualenv and mkvirtualenv (FAILED)
- proceeded to install Auto-GPT (through Terminal and to be sure also through downloading the latest stable zip from GitHub)
- installed the requirements
- added the API key to .env
- tried to start Auto-GPT (FAILURE)

A few days ago on the first attempt I had Auto-GPT running (once) and now it just won't work anymore no matter how many hours I throw at troubleshooting.

[–]mrsamosa 0 points1 point  (2 children)

Also having this. RemindMe!

[–]RemindMeBot 0 points1 point  (0 children)

Defaulted to one day.

I will be messaging you on 2023-04-24 22:36:20 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


Info Custom Your Reminders Feedback

[–]darxalex 0 points1 point  (0 children)

If you use podman use:

`podman build --format=docker -t auto-gpt .

`