ShortGPT icon indicating copy to clipboard operation
ShortGPT copied to clipboard

🐛 [Bug]: My macOS is stuck at installing the requirements for more than 1000 Seconds

Open prokemal2012 opened this issue 1 year ago • 5 comments

What happened?

While I was using this command:

docker build -t short_gpt_docker:latest .
docker run -p 31415:31415 --env-file .env short_gpt_docker:latest

I was stuck here:

=> [ 8/10] RUN pip install -r requirements.txt

Please find a fix, I have also used a Venv but still, it doesn't work

After sometime this was the error message that popped up:

655.4       error: can't find Rust compiler
655.4       
655.4       If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
655.4       
655.4       To update pip, run:
655.4       
655.4           pip install --upgrade pip
655.4       
655.4       and then retry package installation.
655.4       
655.4       If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
655.4       [end of output]
655.4   
655.4   note: This error originates from a subprocess, and is likely not a problem with pip.
655.4   ERROR: Failed building wheel for sudachipy
655.4 Successfully built pillow moviepy TTS gruut ffmpeg tinymongo progress encodec spacy srt bnnumerizer dtw-python jieba openai-whisper docopt gruut-ipa gruut_lang_de gruut_lang_en gruut_lang_es gruut_lang_fr
655.4 Failed to build sudachipy
655.4 ERROR: Could not build wheels for sudachipy, which is required to install pyproject.toml-based projects
655.4 
655.4 [notice] A new release of pip is available: 24.0 -> 24.3.1
655.4 [notice] To update, run: pip install --upgrade pip
------
Dockerfile:24
--------------------
  22 |     
  23 |     # Install dependencies
  24 | >>> RUN pip install -r requirements.txt
  25 |     
  26 |     # Copy the local package directory content into the container at /app
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/6kp5n967rulxjfogmgrahq3pr
Unable to find image 'short_gpt_docker:latest' locally
docker: Error response from daemon: pull access denied for short_gpt_docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

What type of browser are you seeing the problem on?

Chrome

What type of Operating System are you seeing the problem on?

Mac

Python Version

3.13

Application Version

0.1.3

Expected Behavior

The requirements would be installed and I would move on.

prokemal2012 avatar Dec 25 '24 15:12 prokemal2012

Bumping this up as I am facing a similar issue.

chaitanyagiri avatar Jan 06 '25 23:01 chaitanyagiri

same issue

pharshdev avatar Mar 01 '25 00:03 pharshdev

Same issue

bsor-dev avatar Apr 10 '25 21:04 bsor-dev

same

wiendekapec avatar Apr 21 '25 02:04 wiendekapec

Change image to python:3.10, it helps me

NikitaUshanov avatar Jun 03 '25 20:06 NikitaUshanov