Skip to content
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

can't open file '/app/bot/main.py': [Errno 2] No such file or directory #632

Open
Zoldex opened this issue Sep 4, 2024 · 1 comment
Open

Comments

@Zoldex
Copy link

Zoldex commented Sep 4, 2024

tried with Docker Hub and ghcr:

My compose:

services:
  chatgpt-telegram-bot:
    container_name: chatgpt-telegram-bot
    image: ghcr.io/n3d1117/chatgpt-telegram-bot:latest
    environment:
      # Your OpenAI API key
      - OPENAI_API_KEY=MYKEY
      # Your Telegram bot token obtained using @BotFather
      - TELEGRAM_BOT_TOKEN=MYTOKEN
      # Telegram user ID of admins, or - to assign no admin
      - ADMIN_USER_IDS=MYID
      # Comma separated list of telegram user IDs, or * to allow all
      - ALLOWED_TELEGRAM_USER_IDS=*
    volumes:
      - '/volume1/docker/chatgpt-telegram-bot:/app'
    restart: unless-stopped

Result:
python: can't open file '/app/bot/main.py': [Errno 2] No such file or directory

What's wrong?

@yurnov
Copy link
Contributor

yurnov commented Nov 3, 2024

your fault is in the following part:

    volumes:
      - '/volume1/docker/chatgpt-telegram-bot:/app'

Just remove this part and the bot should start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants