AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

"docker-compose run" ends with "/usr/local/bin/python: No module named autogpt"

Open daudo opened this issue 1 year ago • 1 comments

⚠️ Search for existing issues first ⚠️

  • [X] I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Linux

Which version of Auto-GPT are you using?

Latest Release

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

preface: this may be related to #3403

I was trying to follow the steps outlined in #3403 to get 0.2.2 up and running, which actually worked, but with 0.3.0 things went south again, albeit at a different step:

Following the documentation [1], here's what I did:

$ docker pull significantgravitas/auto-gpt
Using default tag: latest
latest: Pulling from significantgravitas/auto-gpt
[...]
Digest: sha256:62f84f7fef0b07ef01e22128da8e95d24cd1098c0336f164cc3c6eaca81042ea
Status: Image is up to date for significantgravitas/auto-gpt:latest
docker.io/significantgravitas/auto-gpt:latest
$ mkdir autogpt && cd autogpt

I then created a docker-compose.yml as described in the documentation:

$ cat docker-compose.yml
version: "3.9"
services:
  auto-gpt:
    image: significantgravitas/auto-gpt
    depends_on:
      - redis
    env_file:
      - .env
    environment:
      MEMORY_BACKEND: ${MEMORY_BACKEND:-redis}
      REDIS_HOST: ${REDIS_HOST:-redis}
    volumes:
      - ./:/app
    profiles: ["exclude-from-up"]
  redis:
    image: "redis/redis-stack-server:latest"

Based on https://github.com/Significant-Gravitas/Auto-GPT/blob/master/.env.template, I created an .env file with my OpenAI API token an finally let docker-compose do its wonders:

$ docker-compose run --rm auto-gpt
[+] Running 2/2
 ✔ Network auto-gpt_default    Created                                                                                        0.0s 
 ✔ Container auto-gpt-redis-1  Created                                                                                        0.1s 
[+] Running 1/1
 ✔ Container auto-gpt-redis-1  Started                                                                                        0.3s 
/usr/local/bin/python: No module named autogpt

[1] https://docs.agpt.co/setup/#set-up-with-docker

Current behavior 😯

auto-gpt doesn't start because the "autogpt" module can't be found

Expected behavior 🤔

a nice and smooth and friendly chat with Auto-GPT :)

Your prompt 📝

No response

Your Logs 📒

No response

daudo avatar May 03 '23 08:05 daudo

Duplicate of #1513 Looks like this is fixed in v 0.3.1 #3710

hackern0v1c3 avatar May 03 '23 16:05 hackern0v1c3

If you use podman use: podman build --format=docker -t auto-gpt .

daniel-alejandro-t avatar Aug 01 '23 02:08 daniel-alejandro-t