father-bot / chatgpt_telegram_bot

💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API.
https://t.me/chatgpt_karfly_bot
MIT License
5.18k stars 1.81k forks source link

Can't start using `docker compose` #420

Open azazar opened 10 months ago

azazar commented 10 months ago

I'm getting an error: ERROR [3/7] RUN pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptool

 => CACHED [2/7] RUN     set -eux;     apt-get update;     DEBIAN_FRONTEND="noninteractive" ap  0.0s
 => ERROR [3/7] RUN pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptool  44.1s
------
 > [3/7] RUN pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptools==59.5.0:
#0 25.39 Requirement already satisfied: pip in /usr/local/lib/python3.8/site-packages (23.0.1)
#0 26.77 Collecting pip
#0 27.37   Downloading pip-23.3.2-py3-none-any.whl (2.1 MB)
#0 28.66      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 1.7 MB/s eta 0:00:00
#0 29.14 Installing collected packages: pip
#0 29.14   Attempting uninstall: pip
#0 29.15     Found existing installation: pip 23.0.1
#0 32.19     Uninstalling pip-23.0.1:
#0 43.02 ERROR: Could not install packages due to an OSError: [Errno 39] Directory not empty: 'cachecontrol'
#0 43.02
#0 43.09 WARNING: There was an error checking the latest version of pip.
------
failed to solve: executor failed running [/bin/sh -c pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptools==59.5.0]: exit code: 1
azazar commented 10 months ago

Commenting out RUN pip3 install -U pip && pip3 install -U wheel && pip3 install -U setuptools==59.5.0 in Dockerfile seems to help