coqui-ai / TTS

πŸΈπŸ’¬ - a deep learning toolkit for Text-to-Speech, battle-tested in research and production
http://coqui.ai
Mozilla Public License 2.0
35.37k stars 4.31k forks source link

[Bug] installation failure AttributeError: 'dict' object has no attribute '__NUMPY_SETUP__' #4046

Open dzianisv opened 6 days ago

dzianisv commented 6 days ago

Describe the bug

AttributeError: 'dict' object has no attribute '__NUMPY_SETUP__'

To Reproduce

pip install TTS

Expected behavior

Installed module

Logs

Collecting TTS (from -r requirements.txt (line 6))
  Using cached TTS-0.22.0.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting lxml (from ebooklib->-r requirements.txt (line 1))
  Using cached lxml-5.3.0-cp39-cp39-macosx_10_9_universal2.whl.metadata (3.8 kB)
Collecting six (from ebooklib->-r requirements.txt (line 1))
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting soupsieve>1.2 (from beautifulsoup4->-r requirements.txt (line 2))
  Using cached soupsieve-2.6-py3-none-any.whl.metadata (4.6 kB)
Collecting boto3 (from bark->-r requirements.txt (line 3))
  Using cached boto3-1.35.55-py3-none-any.whl.metadata (6.7 kB)
Collecting encodec (from bark->-r requirements.txt (line 3))
  Using cached encodec-0.1.1.tar.gz (3.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting funcy (from bark->-r requirements.txt (line 3))
  Using cached funcy-2.0-py2.py3-none-any.whl.metadata (5.9 kB)
Collecting huggingface-hub>=0.14.1 (from bark->-r requirements.txt (line 3))
  Using cached huggingface_hub-0.26.2-py3-none-any.whl.metadata (13 kB)
Collecting tokenizers (from bark->-r requirements.txt (line 3))
  Using cached tokenizers-0.20.3-cp39-cp39-macosx_11_0_arm64.whl.metadata (6.7 kB)
Collecting torch (from bark->-r requirements.txt (line 3))
  Using cached torch-2.5.1-cp39-none-macosx_11_0_arm64.whl.metadata (28 kB)
Collecting tqdm (from bark->-r requirements.txt (line 3))
  Using cached tqdm-4.67.0-py3-none-any.whl.metadata (57 kB)
Collecting transformers (from bark->-r requirements.txt (line 3))
  Using cached transformers-4.46.2-py3-none-any.whl.metadata (44 kB)
Collecting cython>=0.29.30 (from TTS->-r requirements.txt (line 6))
  Using cached Cython-3.0.11-py2.py3-none-any.whl.metadata (3.2 kB)
Collecting torchaudio (from TTS->-r requirements.txt (line 6))
  Using cached torchaudio-2.5.1-cp39-cp39-macosx_11_0_arm64.whl.metadata (6.4 kB)
Collecting soundfile>=0.12.0 (from TTS->-r requirements.txt (line 6))
  Using cached soundfile-0.12.1-py2.py3-none-macosx_11_0_arm64.whl.metadata (14 kB)
Collecting librosa>=0.10.0 (from TTS->-r requirements.txt (line 6))
  Using cached librosa-0.10.2.post1-py3-none-any.whl.metadata (8.6 kB)
Collecting scikit-learn>=1.3.0 (from TTS->-r requirements.txt (line 6))
  Using cached scikit_learn-1.5.2-cp39-cp39-macosx_12_0_arm64.whl.metadata (13 kB)
Collecting inflect>=5.6.0 (from TTS->-r requirements.txt (line 6))
  Using cached inflect-7.4.0-py3-none-any.whl.metadata (21 kB)
Collecting anyascii>=0.3.0 (from TTS->-r requirements.txt (line 6))
  Using cached anyascii-0.3.2-py3-none-any.whl.metadata (1.5 kB)
Collecting pyyaml>=6.0 (from TTS->-r requirements.txt (line 6))
  Using cached PyYAML-6.0.2-cp39-cp39-macosx_11_0_arm64.whl.metadata (2.1 kB)
Collecting fsspec>=2023.6.0 (from TTS->-r requirements.txt (line 6))
  Using cached fsspec-2024.10.0-py3-none-any.whl.metadata (11 kB)
Collecting aiohttp>=3.8.1 (from TTS->-r requirements.txt (line 6))
  Using cached aiohttp-3.10.10-cp39-cp39-macosx_11_0_arm64.whl.metadata (7.6 kB)
Collecting packaging>=23.1 (from TTS->-r requirements.txt (line 6))
  Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting flask>=2.0.1 (from TTS->-r requirements.txt (line 6))
  Using cached flask-3.0.3-py3-none-any.whl.metadata (3.2 kB)
Collecting pysbd>=0.3.4 (from TTS->-r requirements.txt (line 6))
  Using cached pysbd-0.3.4-py3-none-any.whl.metadata (6.1 kB)
Collecting umap-learn>=0.5.1 (from TTS->-r requirements.txt (line 6))
  Using cached umap_learn-0.5.7-py3-none-any.whl.metadata (21 kB)
Collecting pandas<2.0,>=1.4 (from TTS->-r requirements.txt (line 6))
  Using cached pandas-1.5.3-cp39-cp39-macosx_11_0_arm64.whl.metadata (11 kB)
Collecting matplotlib>=3.7.0 (from TTS->-r requirements.txt (line 6))
  Using cached matplotlib-3.9.2-cp39-cp39-macosx_11_0_arm64.whl.metadata (11 kB)
Collecting trainer>=0.0.32 (from TTS->-r requirements.txt (line 6))
  Using cached trainer-0.0.36-py3-none-any.whl.metadata (8.1 kB)
Collecting coqpit>=0.0.16 (from TTS->-r requirements.txt (line 6))
  Using cached coqpit-0.0.17-py3-none-any.whl.metadata (11 kB)
Collecting jieba (from TTS->-r requirements.txt (line 6))
  Using cached jieba-0.42.1.tar.gz (19.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pypinyin (from TTS->-r requirements.txt (line 6))
  Using cached pypinyin-0.53.0-py2.py3-none-any.whl.metadata (12 kB)
Collecting hangul-romanize (from TTS->-r requirements.txt (line 6))
  Using cached hangul_romanize-0.1.0-py3-none-any.whl.metadata (1.2 kB)
Collecting gruut==2.2.3 (from gruut[de,es,fr]==2.2.3->TTS->-r requirements.txt (line 6))
  Using cached gruut-2.2.3.tar.gz (73 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting jamo (from TTS->-r requirements.txt (line 6))
  Using cached jamo-0.4.1-py3-none-any.whl.metadata (2.3 kB)
Collecting nltk (from TTS->-r requirements.txt (line 6))
  Using cached nltk-3.9.1-py3-none-any.whl.metadata (2.9 kB)
Collecting g2pkk>=0.1.1 (from TTS->-r requirements.txt (line 6))
  Using cached g2pkk-0.1.2-py3-none-any.whl.metadata (2.0 kB)
Collecting bangla (from TTS->-r requirements.txt (line 6))
  Using cached bangla-0.0.2-py2.py3-none-any.whl.metadata (4.5 kB)
Collecting bnnumerizer (from TTS->-r requirements.txt (line 6))
  Using cached bnnumerizer-0.0.2.tar.gz (4.7 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting bnunicodenormalizer (from TTS->-r requirements.txt (line 6))
  Using cached bnunicodenormalizer-0.1.7-py3-none-any.whl.metadata (22 kB)
Collecting einops>=0.6.0 (from TTS->-r requirements.txt (line 6))
  Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Collecting unidecode>=1.3.2 (from TTS->-r requirements.txt (line 6))
  Using cached Unidecode-1.3.8-py3-none-any.whl.metadata (13 kB)
Collecting num2words (from TTS->-r requirements.txt (line 6))
  Using cached num2words-0.5.13-py3-none-any.whl.metadata (12 kB)
Collecting spacy>=3 (from spacy[ja]>=3->TTS->-r requirements.txt (line 6))
  Using cached spacy-3.8.2-cp39-cp39-macosx_11_0_arm64.whl.metadata (27 kB)
INFO: pip is looking at multiple versions of tts to determine which version is compatible with other requirements. This could take a while.
Collecting TTS (from -r requirements.txt (line 6))
  Using cached TTS-0.21.3.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.21.2.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.21.1.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.21.0.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.20.6.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.20.5.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cython==0.29.30 (from TTS->-r requirements.txt (line 6))
  Using cached Cython-0.29.30-py2.py3-none-any.whl.metadata (2.8 kB)
Collecting scikit-learn==1.3.0 (from TTS->-r requirements.txt (line 6))
  Using cached scikit_learn-1.3.0-cp39-cp39-macosx_12_0_arm64.whl.metadata (11 kB)
Collecting inflect==5.6.* (from TTS->-r requirements.txt (line 6))
  Using cached inflect-5.6.2-py3-none-any.whl.metadata (21 kB)
Collecting tqdm (from bark->-r requirements.txt (line 3))
  Using cached tqdm-4.64.1-py2.py3-none-any.whl.metadata (57 kB)
Collecting fsspec==2023.6.0 (from TTS->-r requirements.txt (line 6))
  Using cached fsspec-2023.6.0-py3-none-any.whl.metadata (6.7 kB)
Collecting aiohttp==3.8.* (from TTS->-r requirements.txt (line 6))
  Using cached aiohttp-3.8.6-cp39-cp39-macosx_11_0_arm64.whl.metadata (7.7 kB)
Collecting packaging==23.1 (from TTS->-r requirements.txt (line 6))
  Using cached packaging-23.1-py3-none-any.whl.metadata (3.1 kB)
Collecting flask==2.* (from TTS->-r requirements.txt (line 6))
  Using cached flask-2.3.3-py3-none-any.whl.metadata (3.6 kB)
Collecting matplotlib==3.7.* (from TTS->-r requirements.txt (line 6))
  Using cached matplotlib-3.7.5-cp39-cp39-macosx_11_0_arm64.whl.metadata (5.7 kB)
Collecting k-diffusion (from TTS->-r requirements.txt (line 6))
  Using cached k_diffusion-0.1.1.post1-py3-none-any.whl.metadata (3.9 kB)
Collecting einops==0.6.* (from TTS->-r requirements.txt (line 6))
  Using cached einops-0.6.1-py3-none-any.whl.metadata (12 kB)
Collecting transformers (from bark->-r requirements.txt (line 3))
  Using cached transformers-4.33.3-py3-none-any.whl.metadata (119 kB)
Collecting TTS (from -r requirements.txt (line 6))
  Using cached TTS-0.20.4.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
INFO: pip is still looking at multiple versions of tts to determine which version is compatible with other requirements. This could take a while.
  Using cached TTS-0.20.3.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.20.2.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.20.1.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.20.0.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.19.1.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
  Using cached TTS-0.19.0.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.18.2.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.18.1.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.18.0.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.17.9.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.17.8.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.17.7.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.17.6.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.17.5.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pandas==1.4.* (from TTS->-r requirements.txt (line 6))
  Using cached pandas-1.4.4-cp39-cp39-macosx_11_0_arm64.whl.metadata (12 kB)
Collecting TTS (from -r requirements.txt (line 6))
  Using cached TTS-0.17.4.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting librosa==0.10.0.* (from TTS->-r requirements.txt (line 6))
  Using cached librosa-0.10.0.post2-py3-none-any.whl.metadata (8.3 kB)
Collecting inflect==5.6.0 (from TTS->-r requirements.txt (line 6))
  Using cached inflect-5.6.0-py3-none-any.whl.metadata (21 kB)
Collecting umap-learn==0.5.1 (from TTS->-r requirements.txt (line 6))
  Using cached umap-learn-0.5.1.tar.gz (80 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pandas (from TTS->-r requirements.txt (line 6))
  Using cached pandas-2.2.3-cp39-cp39-macosx_11_0_arm64.whl.metadata (89 kB)
Collecting bnunicodenormalizer==0.1.1 (from TTS->-r requirements.txt (line 6))
  Using cached bnunicodenormalizer-0.1.1.tar.gz (38 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting TTS (from -r requirements.txt (line 6))
  Using cached TTS-0.17.2.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.17.1.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.17.0.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.16.6.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.16.5.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.16.4.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.16.3.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.16.1.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.16.0.tar.gz (1.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Using cached TTS-0.15.6.tar.gz (1.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting mecab-python3==1.0.6 (from TTS->-r requirements.txt (line 6))
  Using cached mecab-python3-1.0.6.tar.gz (77 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting unidic-lite==1.0.8 (from TTS->-r requirements.txt (line 6))
  Downloading unidic-lite-1.0.8.tar.gz (47.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.4/47.4 MB 21.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting TTS (from -r requirements.txt (line 6))
  Downloading TTS-0.15.5.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 20.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.15.4.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 23.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.15.2.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 25.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.15.1.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 18.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.15.0.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 23.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.14.3.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 1.5 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cython==0.29.28 (from TTS->-r requirements.txt (line 6))
  Using cached Cython-0.29.28-py2.py3-none-any.whl.metadata (2.8 kB)
Collecting trainer==0.0.20 (from TTS->-r requirements.txt (line 6))
  Downloading trainer-0.0.20-py3-none-any.whl.metadata (5.6 kB)
Collecting mecab-python3==1.0.5 (from TTS->-r requirements.txt (line 6))
  Downloading mecab-python3-1.0.5.tar.gz (77 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting TTS (from -r requirements.txt (line 6))
  Downloading TTS-0.14.2.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 11.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.14.0.tar.gz (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 11.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.13.3.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 14.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.13.2.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 15.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.13.1.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 10.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.13.0.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 15.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting librosa==0.8.0 (from TTS->-r requirements.txt (line 6))
  Downloading librosa-0.8.0.tar.gz (183 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting TTS (from -r requirements.txt (line 6))
  Downloading TTS-0.12.0.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 14.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.11.1.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 16.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.11.0.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 18.5 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.10.2.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 16.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.10.1.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 14.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.10.0.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 17.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.9.0.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 13.4 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  Downloading TTS-0.8.0.tar.gz (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 15.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyworld==0.2.10 (from TTS->-r requirements.txt (line 6))
  Downloading pyworld-0.2.10.tar.gz (73 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  Γ— Preparing metadata (pyproject.toml) did not run successfully.
  β”‚ exit code: 1
  ╰─> [70 lines of output]
      /private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/dist.py:495: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!

              ********************************************************************************
              Usage of dash-separated 'description-file' will not be supported in future
              versions. Please use the underscore name 'description_file' instead.

              By 2025-Mar-03, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

      !!
        opt = self.warn_dash_deprecation(opt, section)
      running dist_info
      creating /private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-modern-metadata-uuh51cai/pyworld.egg-info
      writing /private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-modern-metadata-uuh51cai/pyworld.egg-info/PKG-INFO
      writing dependency_links to /private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-modern-metadata-uuh51cai/pyworld.egg-info/dependency_links.txt
      writing requirements to /private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-modern-metadata-uuh51cai/pyworld.egg-info/requires.txt
      writing top-level names to /private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-modern-metadata-uuh51cai/pyworld.egg-info/top_level.txt
      writing manifest file '/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-modern-metadata-uuh51cai/pyworld.egg-info/SOURCES.txt'
      Traceback (most recent call last):
        File "/Volumes/Backup/Users/engineer/workspace/VocalPages/.venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Volumes/Backup/Users/engineer/workspace/VocalPages/.venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Volumes/Backup/Users/engineer/workspace/VocalPages/.venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 376, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 521, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 319, in run_setup
          exec(code, locals())
        File "<string>", line 43, in <module>
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 183, in setup
          return run_commands(dist)
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
          dist.run_commands()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
          self.run_command(cmd)
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 999, in run_command
          super().run_command(command)
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
          cmd_obj.run()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py", line 93, in run
          self.egg_info.run()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 312, in run
          self.find_sources()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
          mm.run()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 541, in run
          self.add_defaults()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 579, in add_defaults
          sdist.add_defaults(self)
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/command/sdist.py", line 109, in add_defaults
          super().add_defaults()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/sdist.py", line 238, in add_defaults
          self._add_defaults_ext()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/sdist.py", line 322, in _add_defaults_ext
          build_ext = self.get_finalized_command('build_ext')
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 303, in get_finalized_command
          cmd_obj.ensure_finalized()
        File "/private/var/folders/4c/fyy40nn16w143kbfbztyd2400000gn/T/pip-build-env-ezykt1nw/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
          self.finalize_options()
        File "<string>", line 29, in finalize_options
      AttributeError: 'dict' object has no attribute '__NUMPY_SETUP__'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
error: metadata-generation-failed

Γ— Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Environment

OS: macos
Python: 3.9
Command: pip install TTS

Additional context

No response

eginhard commented 6 days ago

Try installing our fork instead with pip install coqui-tts, it works better with recent versions of dependencies. This repo is not maintained anymore.