rendchevi / nix-tts

🐤 Nix-TTS: Lightweight and End-to-end Text-to-Speech via Module-wise Distillation
MIT License
243 stars 33 forks source link

The build is broken.I am sharing all the files i used #20

Open gocodersuresh opened 2 months ago

gocodersuresh commented 2 months ago

requirements.txt

TTS==0.22.0
onnxruntime==1.13.1
numpy==1.23.5
pydub==0.25.1
moviepy==1.0.3
fastapi==0.78.0
uvicorn==0.17.6

Dockerfile

# Use an official Python image
FROM python:3.8-slim

# Set the working directory
WORKDIR /app

# Install dependencies
RUN apt-get update && apt-get install -y \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

# Copy the requirements file and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the application files
COPY . .

# Expose the port for the API
EXPOSE 8000

# Run the API
CMD ["python", "app.py"]

Error i got

=> ERROR [5/6] RUN pip install --no-cache-dir -r requirements.txt                                                          1.6s
------                                                                                                                           
 > [5/6] RUN pip install --no-cache-dir -r requirements.txt:                                                                     
1.376 ERROR: Ignored the following versions that require a different python version: 0.15.0 Requires-Python >=3.9.0, <3.12; 0.15.1 Requires-Python >=3.9.0, <3.12; 0.15.2 Requires-Python >=3.9.0, <3.12; 0.15.4 Requires-Python >=3.9.0, <3.12; 0.15.5 Requires-Python >=3.9.0, <3.12; 0.15.6 Requires-Python >=3.9.0, <3.12; 0.16.0 Requires-Python >=3.9.0, <3.12; 0.16.1 Requires-Python >=3.9.0, <3.12; 0.16.3 Requires-Python >=3.9.0, <3.12; 0.16.4 Requires-Python >=3.9.0, <3.12; 0.16.5 Requires-Python >=3.9.0, <3.12; 0.16.6 Requires-Python >=3.9.0, <3.12; 0.17.0 Requires-Python >=3.9.0, <3.12; 0.17.1 Requires-Python >=3.9.0, <3.12; 0.17.2 Requires-Python >=3.9.0, <3.12; 0.17.4 Requires-Python >=3.9.0, <3.12; 0.17.5 Requires-Python >=3.9.0, <3.12; 0.17.6 Requires-Python >=3.9.0, <3.12; 0.17.7 Requires-Python >=3.9.0, <3.12; 0.17.8 Requires-Python >=3.9.0, <3.12; 0.17.9 Requires-Python >=3.9.0, <3.12; 0.18.0 Requires-Python >=3.9.0, <3.12; 0.18.1 Requires-Python >=3.9.0, <3.12; 0.18.2 Requires-Python >=3.9.0, <3.12; 0.19.0 Requires-Python >=3.9.0, <3.12; 0.19.1 Requires-Python >=3.9.0, <3.12; 0.20.0 Requires-Python >=3.9.0, <3.12; 0.20.1 Requires-Python >=3.9.0, <3.12; 0.20.2 Requires-Python >=3.9.0, <3.12; 0.20.3 Requires-Python >=3.9.0, <3.12; 0.20.4 Requires-Python >=3.9.0, <3.12; 0.20.5 Requires-Python >=3.9.0, <3.12; 0.20.6 Requires-Python >=3.9.0, <3.12; 0.21.0 Requires-Python >=3.9.0, <3.12; 0.21.1 Requires-Python >=3.9.0, <3.12; 0.21.2 Requires-Python >=3.9.0, <3.12; 0.21.3 Requires-Python >=3.9.0, <3.12; 0.22.0 Requires-Python >=3.9.0, <3.12
1.376 ERROR: Could not find a version that satisfies the requirement TTS==0.22.0 (from versions: 0.0.9a9, 0.0.9a10, 0.0.9, 0.0.9.1, 0.0.9.2, 0.0.10.2, 0.0.10.3, 0.0.11, 0.0.12, 0.0.13.1, 0.0.13.2, 0.0.14.1, 0.0.15, 0.0.15.1, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.7.0, 0.7.1, 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.2, 0.14.3)
1.376 ERROR: No matching distribution found for TTS==0.22.0
1.505 
1.505 [notice] A new release of pip is available: 23.0.1 -> 24.2
1.505 [notice] To update, run: pip install --upgrade pip
------
Dockerfile:14
--------------------
  12 |     # Copy the requirements file and install Python dependencies
  13 |     COPY requirements.txt .
  14 | >>> RUN pip install --no-cache-dir -r requirements.txt
  15 |     
  16 |     # Copy the application files
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1

I apprecite your help