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

[Bug] Install fails with: No module named 'distutils.msvccompiler' #91

Closed
KoljaB opened this issue Oct 3, 2024 · 5 comments · Fixed by #92
Closed

[Bug] Install fails with: No module named 'distutils.msvccompiler' #91

KoljaB opened this issue Oct 3, 2024 · 5 comments · Fixed by #92
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@KoljaB
Copy link

KoljaB commented Oct 3, 2024

Describe the bug

Got the above mentioned issue for my RealtimeTTS library yesterday) for Ubuntu. I was able to reproduce the issue for Windows 11 too.

I tested on Python 3.10.9 with pip 24.2, 24.0 and 23.3.1. Looks like something around looking for a wheel for scikit-learn fails (in context of librosa... soxr wheel resolvement also looks strange). Interesting is, I can install librosa, soxr and scikit-learn separately without problems, but even then "pip install coqui-tts" fails.

Logging (environment: Windows 11, CUDA 12.1):

(venv) C:\Dev\Coqui_test>pip install coqui-tts
Collecting coqui-tts
  Using cached coqui_tts-0.24.1.tar.gz (1.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting numpy>=1.24.3 (from coqui-tts)
  Using cached numpy-2.1.1-cp310-cp310-win_amd64.whl.metadata (59 kB)
Collecting cython>=0.29.30 (from coqui-tts)
  Using cached Cython-3.0.11-cp310-cp310-win_amd64.whl.metadata (3.2 kB)
Collecting scipy>=1.11.2 (from coqui-tts)
  Using cached scipy-1.14.1-cp310-cp310-win_amd64.whl.metadata (60 kB)
Collecting torch>=2.1 (from coqui-tts)
  Downloading torch-2.4.1-cp310-cp310-win_amd64.whl.metadata (27 kB)
Collecting torchaudio (from coqui-tts)
  Downloading torchaudio-2.4.1-cp310-cp310-win_amd64.whl.metadata (6.5 kB)
Collecting soundfile>=0.12.0 (from coqui-tts)
  Downloading soundfile-0.12.1-py2.py3-none-win_amd64.whl.metadata (14 kB)
Collecting librosa>=0.10.1 (from coqui-tts)
  Downloading librosa-0.10.2.post1-py3-none-any.whl.metadata (8.6 kB)
Collecting inflect>=5.6.0 (from coqui-tts)
  Using cached inflect-7.4.0-py3-none-any.whl.metadata (21 kB)
Collecting tqdm>=4.64.1 (from coqui-tts)
  Downloading tqdm-4.66.5-py3-none-any.whl.metadata (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.6/57.6 kB ? eta 0:00:00
Collecting anyascii>=0.3.0 (from coqui-tts)
  Using cached anyascii-0.3.2-py3-none-any.whl.metadata (1.5 kB)
Collecting pyyaml>=6.0 (from coqui-tts)
  Downloading PyYAML-6.0.2-cp310-cp310-win_amd64.whl.metadata (2.1 kB)
Collecting fsspec>=2023.6.0 (from fsspec[http]>=2023.6.0->coqui-tts)
  Downloading fsspec-2024.9.0-py3-none-any.whl.metadata (11 kB)
Collecting packaging>=23.1 (from coqui-tts)
  Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pysbd>=0.3.4 (from coqui-tts)
  Using cached pysbd-0.3.4-py3-none-any.whl.metadata (6.1 kB)
Collecting umap-learn>=0.5.1 (from coqui-tts)
  Using cached umap_learn-0.5.6-py3-none-any.whl.metadata (21 kB)
Collecting matplotlib>=3.7.0 (from coqui-tts)
  Using cached matplotlib-3.9.2-cp310-cp310-win_amd64.whl.metadata (11 kB)
Collecting coqui-tts-trainer>=0.1 (from coqui-tts)
  Using cached coqui_tts_trainer-0.1.5-py3-none-any.whl.metadata (8.4 kB)
Collecting coqpit>=0.0.16 (from coqui-tts)
  Using cached coqpit-0.0.17-py3-none-any.whl.metadata (11 kB)
Collecting gruut==2.2.3 (from gruut[de,es,fr]==2.2.3->coqui-tts)
  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 einops>=0.6.0 (from coqui-tts)
  Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Collecting transformers<4.41.0,>=4.33.0 (from coqui-tts)
  Using cached transformers-4.40.2-py3-none-any.whl.metadata (137 kB)
Collecting encodec>=0.1.1 (from coqui-tts)
  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 num2words (from coqui-tts)
  Using cached num2words-0.5.13-py3-none-any.whl.metadata (12 kB)
Collecting spacy>=3 (from spacy[ja]>=3->coqui-tts)
  Using cached spacy-3.8.2-cp310-cp310-win_amd64.whl.metadata (27 kB)
Collecting Babel<3.0.0,>=2.8.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached babel-2.16.0-py3-none-any.whl.metadata (1.5 kB)
Collecting dateparser~=1.1.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached dateparser-1.1.8-py2.py3-none-any.whl.metadata (27 kB)
Collecting gruut-ipa<1.0,>=0.12.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached gruut-ipa-0.13.0.tar.gz (101 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting gruut-lang-en~=2.0.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached gruut_lang_en-2.0.1.tar.gz (15.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting jsonlines~=1.2.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached jsonlines-1.2.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting networkx<3.0.0,>=2.5.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached networkx-2.8.8-py3-none-any.whl.metadata (5.1 kB)
Collecting numpy>=1.24.3 (from coqui-tts)
  Using cached numpy-1.26.4-cp310-cp310-win_amd64.whl.metadata (61 kB)
Collecting python-crfsuite~=0.9.7 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached python_crfsuite-0.9.11-cp310-cp310-win_amd64.whl.metadata (4.4 kB)
Collecting gruut-lang-de~=2.0.0 (from gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached gruut_lang_de-2.0.1.tar.gz (18.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting gruut-lang-fr~=2.0.0 (from gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached gruut_lang_fr-2.0.2.tar.gz (10.9 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting gruut-lang-es~=2.0.0 (from gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached gruut_lang_es-2.0.1.tar.gz (31.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting psutil>=5 (from coqui-tts-trainer>=0.1->coqui-tts)
  Using cached psutil-6.0.0-cp37-abi3-win_amd64.whl.metadata (22 kB)
Collecting tensorboard>=2.17.0 (from coqui-tts-trainer>=0.1->coqui-tts)
  Using cached tensorboard-2.18.0-py3-none-any.whl.metadata (1.6 kB)
Collecting aiohttp!=4.0.0a0,!=4.0.0a1 (from fsspec[http]>=2023.6.0->coqui-tts)
  Using cached aiohttp-3.10.8-cp310-cp310-win_amd64.whl.metadata (7.8 kB)
Collecting more-itertools>=8.5.0 (from inflect>=5.6.0->coqui-tts)
  Using cached more_itertools-10.5.0-py3-none-any.whl.metadata (36 kB)
Collecting typeguard>=4.0.1 (from inflect>=5.6.0->coqui-tts)
  Using cached typeguard-4.3.0-py3-none-any.whl.metadata (3.7 kB)
Collecting audioread>=2.1.9 (from librosa>=0.10.1->coqui-tts)
  Downloading audioread-3.0.1-py3-none-any.whl.metadata (8.4 kB)
Collecting scikit-learn>=0.20.0 (from librosa>=0.10.1->coqui-tts)
  Using cached scikit_learn-1.5.2-cp310-cp310-win_amd64.whl.metadata (13 kB)
Collecting joblib>=0.14 (from librosa>=0.10.1->coqui-tts)
  Downloading joblib-1.4.2-py3-none-any.whl.metadata (5.4 kB)
Collecting decorator>=4.3.0 (from librosa>=0.10.1->coqui-tts)
  Downloading decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB)
Collecting numba>=0.51.0 (from librosa>=0.10.1->coqui-tts)
  Downloading numba-0.60.0-cp310-cp310-win_amd64.whl.metadata (2.8 kB)
Collecting pooch>=1.1 (from librosa>=0.10.1->coqui-tts)
  Downloading pooch-1.8.2-py3-none-any.whl.metadata (10 kB)
Collecting soxr>=0.3.2 (from librosa>=0.10.1->coqui-tts)
  Using cached soxr-0.5.0.post1-cp310-cp310-win_amd64.whl.metadata (5.6 kB)
Collecting typing-extensions>=4.1.1 (from librosa>=0.10.1->coqui-tts)
  Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting lazy-loader>=0.1 (from librosa>=0.10.1->coqui-tts)
  Downloading lazy_loader-0.4-py3-none-any.whl.metadata (7.6 kB)
Collecting msgpack>=1.0 (from librosa>=0.10.1->coqui-tts)
  Downloading msgpack-1.1.0-cp310-cp310-win_amd64.whl.metadata (8.6 kB)
Collecting contourpy>=1.0.1 (from matplotlib>=3.7.0->coqui-tts)
  Using cached contourpy-1.3.0-cp310-cp310-win_amd64.whl.metadata (5.4 kB)
Collecting cycler>=0.10 (from matplotlib>=3.7.0->coqui-tts)
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib>=3.7.0->coqui-tts)
  Using cached fonttools-4.54.1-cp310-cp310-win_amd64.whl.metadata (167 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib>=3.7.0->coqui-tts)
  Using cached kiwisolver-1.4.7-cp310-cp310-win_amd64.whl.metadata (6.4 kB)
Collecting pillow>=8 (from matplotlib>=3.7.0->coqui-tts)
  Using cached pillow-10.4.0-cp310-cp310-win_amd64.whl.metadata (9.3 kB)
Collecting pyparsing>=2.3.1 (from matplotlib>=3.7.0->coqui-tts)
  Using cached pyparsing-3.1.4-py3-none-any.whl.metadata (5.1 kB)
Collecting python-dateutil>=2.7 (from matplotlib>=3.7.0->coqui-tts)
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting docopt>=0.6.2 (from num2words->coqui-tts)
  Using cached docopt-0.6.2.tar.gz (25 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.0 (from soundfile>=0.12.0->coqui-tts)
  Downloading cffi-1.17.1-cp310-cp310-win_amd64.whl.metadata (1.6 kB)
Collecting spacy-legacy<3.1.0,>=3.0.11 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached spacy_legacy-3.0.12-py2.py3-none-any.whl.metadata (2.8 kB)
Collecting spacy-loggers<2.0.0,>=1.0.0 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached spacy_loggers-1.0.5-py3-none-any.whl.metadata (23 kB)
Collecting murmurhash<1.1.0,>=0.28.0 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached murmurhash-1.0.10-cp310-cp310-win_amd64.whl.metadata (2.0 kB)
Collecting cymem<2.1.0,>=2.0.2 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached cymem-2.0.8-cp310-cp310-win_amd64.whl.metadata (8.6 kB)
Collecting preshed<3.1.0,>=3.0.2 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached preshed-3.0.9-cp310-cp310-win_amd64.whl.metadata (2.2 kB)
Collecting thinc<8.4.0,>=8.3.0 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached thinc-8.3.2-cp310-cp310-win_amd64.whl.metadata (15 kB)
Collecting wasabi<1.2.0,>=0.9.1 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached wasabi-1.1.3-py3-none-any.whl.metadata (28 kB)
Collecting srsly<3.0.0,>=2.4.3 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached srsly-2.4.8-cp310-cp310-win_amd64.whl.metadata (20 kB)
Collecting catalogue<2.1.0,>=2.0.6 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached catalogue-2.0.10-py3-none-any.whl.metadata (14 kB)
Collecting weasel<0.5.0,>=0.1.0 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached weasel-0.4.1-py3-none-any.whl.metadata (4.6 kB)
Collecting typer<1.0.0,>=0.3.0 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached typer-0.12.5-py3-none-any.whl.metadata (15 kB)
Collecting requests<3.0.0,>=2.13.0 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached pydantic-2.9.2-py3-none-any.whl.metadata (149 kB)
Collecting jinja2 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Requirement already satisfied: setuptools in c:\dev\coqui_test\venv\lib\site-packages (from spacy>=3->spacy[ja]>=3->coqui-tts) (65.5.0)
Collecting langcodes<4.0.0,>=3.2.0 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached langcodes-3.4.1-py3-none-any.whl.metadata (29 kB)
Collecting sudachipy!=0.6.1,>=0.5.2 (from spacy[ja]>=3->coqui-tts)
  Using cached SudachiPy-0.6.8-cp310-cp310-win_amd64.whl.metadata (13 kB)
Collecting sudachidict-core>=20211220 (from spacy[ja]>=3->coqui-tts)
  Using cached SudachiDict_core-20240716-py3-none-any.whl.metadata (2.5 kB)
Collecting filelock (from torch>=2.1->coqui-tts)
  Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Collecting sympy (from torch>=2.1->coqui-tts)
  Downloading sympy-1.13.3-py3-none-any.whl.metadata (12 kB)
Collecting colorama (from tqdm>=4.64.1->coqui-tts)
  Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting huggingface-hub<1.0,>=0.19.3 (from transformers<4.41.0,>=4.33.0->coqui-tts)
  Downloading huggingface_hub-0.25.1-py3-none-any.whl.metadata (13 kB)
Collecting regex!=2019.12.17 (from transformers<4.41.0,>=4.33.0->coqui-tts)
  Using cached regex-2024.9.11-cp310-cp310-win_amd64.whl.metadata (41 kB)
Collecting tokenizers<0.20,>=0.19 (from transformers<4.41.0,>=4.33.0->coqui-tts)
  Using cached tokenizers-0.19.1-cp310-none-win_amd64.whl.metadata (6.9 kB)
Collecting safetensors>=0.4.1 (from transformers<4.41.0,>=4.33.0->coqui-tts)
  Using cached safetensors-0.4.5-cp310-none-win_amd64.whl.metadata (3.9 kB)
Collecting pynndescent>=0.5 (from umap-learn>=0.5.1->coqui-tts)
  Using cached pynndescent-0.5.13-py3-none-any.whl.metadata (6.8 kB)
Collecting aiohappyeyeballs>=2.3.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts)
  Using cached aiohappyeyeballs-2.4.3-py3-none-any.whl.metadata (6.1 kB)
Collecting aiosignal>=1.1.2 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts)
  Using cached aiosignal-1.3.1-py3-none-any.whl.metadata (4.0 kB)
Collecting attrs>=17.3.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts)
  Using cached attrs-24.2.0-py3-none-any.whl.metadata (11 kB)
Collecting frozenlist>=1.1.1 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts)
  Using cached frozenlist-1.4.1-cp310-cp310-win_amd64.whl.metadata (12 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts)
  Using cached multidict-6.1.0-cp310-cp310-win_amd64.whl.metadata (5.1 kB)
Collecting yarl<2.0,>=1.12.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts)
  Using cached yarl-1.13.1-cp310-cp310-win_amd64.whl.metadata (52 kB)
Collecting async-timeout<5.0,>=4.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts)
  Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting pycparser (from cffi>=1.0->soundfile>=0.12.0->coqui-tts)
  Downloading pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Collecting pytz (from dateparser~=1.1.0->gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached pytz-2024.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzlocal (from dateparser~=1.1.0->gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Using cached tzlocal-5.2-py3-none-any.whl.metadata (7.8 kB)
Collecting six (from jsonlines~=1.2.0->gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts)
  Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting language-data>=1.2 (from langcodes<4.0.0,>=3.2.0->spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached language_data-1.2.0-py3-none-any.whl.metadata (4.3 kB)
Collecting llvmlite<0.44,>=0.43.0dev0 (from numba>=0.51.0->librosa>=0.10.1->coqui-tts)
  Downloading llvmlite-0.43.0-cp310-cp310-win_amd64.whl.metadata (4.9 kB)
Collecting platformdirs>=2.5.0 (from pooch>=1.1->librosa>=0.10.1->coqui-tts)
  Downloading platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
Collecting annotated-types>=0.6.0 (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.23.4 (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached pydantic_core-2.23.4-cp310-none-win_amd64.whl.metadata (6.7 kB)
Collecting charset-normalizer<4,>=2 (from requests<3.0.0,>=2.13.0->spacy>=3->spacy[ja]>=3->coqui-tts)
  Downloading charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.13.0->spacy>=3->spacy[ja]>=3->coqui-tts)
  Downloading idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests<3.0.0,>=2.13.0->spacy>=3->spacy[ja]>=3->coqui-tts)
  Downloading urllib3-2.2.3-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.13.0->spacy>=3->spacy[ja]>=3->coqui-tts)
  Downloading certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
Collecting threadpoolctl>=3.1.0 (from scikit-learn>=0.20.0->librosa>=0.10.1->coqui-tts)
  Downloading threadpoolctl-3.5.0-py3-none-any.whl.metadata (13 kB)
Collecting absl-py>=0.4 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts)
  Using cached absl_py-2.1.0-py3-none-any.whl.metadata (2.3 kB)
Collecting grpcio>=1.48.2 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts)
  Using cached grpcio-1.66.2-cp310-cp310-win_amd64.whl.metadata (4.0 kB)
Collecting markdown>=2.6.8 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts)
  Using cached Markdown-3.7-py3-none-any.whl.metadata (7.0 kB)
Collecting protobuf!=4.24.0,>=3.19.6 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts)
  Downloading protobuf-5.28.2-cp310-abi3-win_amd64.whl.metadata (592 bytes)
Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts)
  Using cached tensorboard_data_server-0.7.2-py3-none-any.whl.metadata (1.1 kB)
Collecting werkzeug>=1.0.1 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts)
  Using cached werkzeug-3.0.4-py3-none-any.whl.metadata (3.7 kB)
Collecting blis<1.1.0,>=1.0.0 (from thinc<8.4.0,>=8.3.0->spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached blis-1.0.1-cp310-cp310-win_amd64.whl.metadata (7.8 kB)
Collecting confection<1.0.0,>=0.0.1 (from thinc<8.4.0,>=8.3.0->spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached confection-0.1.5-py3-none-any.whl.metadata (19 kB)
INFO: pip is looking at multiple versions of thinc to determine which version is compatible with other requirements. This could take a while.
Collecting thinc<8.4.0,>=8.3.0 (from spacy>=3->spacy[ja]>=3->coqui-tts)
  Using cached thinc-8.3.1-cp310-cp310-win_amd64.whl.metadata (15 kB)
  Using cached thinc-8.3.0-cp310-cp310-win_amd64.whl.metadata (15 kB)
Collecting tensorboard>=2.17.0 (from coqui-tts-trainer>=0.1->coqui-tts)
  Using cached tensorboard-2.17.1-py3-none-any.whl.metadata (1.6 kB)
  Using cached tensorboard-2.17.0-py3-none-any.whl.metadata (1.6 kB)
Collecting protobuf!=4.24.0,<5.0.0,>=3.19.6 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts)
  Using cached protobuf-4.25.5-cp310-abi3-win_amd64.whl.metadata (541 bytes)
INFO: pip is still looking at multiple versions of thinc to determine which version is compatible with other requirements. This could take a while.
Collecting soxr>=0.3.2 (from librosa>=0.10.1->coqui-tts)
  Using cached soxr-0.5.0-cp310-cp310-win_amd64.whl.metadata (5.6 kB)
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 soxr-0.4.0-cp310-cp310-win_amd64.whl.metadata (5.7 kB)
  Using cached soxr-0.3.7-cp310-cp310-win_amd64.whl.metadata (5.7 kB)
  Using cached soxr-0.3.6-cp310-cp310-win_amd64.whl.metadata (5.5 kB)
  Using cached soxr-0.3.5-cp310-cp310-win_amd64.whl.metadata (5.5 kB)
  Using cached soxr-0.3.4-cp310-cp310-win_amd64.whl.metadata (5.5 kB)
  Using cached soxr-0.3.3-cp310-cp310-win_amd64.whl.metadata (5.0 kB)
  Using cached soxr-0.3.2-cp310-cp310-win_amd64.whl.metadata (5.0 kB)
Collecting scikit-learn>=0.20.0 (from librosa>=0.10.1->coqui-tts)
  Using cached scikit_learn-1.5.1-cp310-cp310-win_amd64.whl.metadata (12 kB)
  Using cached scikit_learn-1.5.0-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.4.2-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.4.1.post1-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.4.0-1-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.3.2-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.3.1-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.3.0-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.2.2-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.2.1-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.2.0-cp310-cp310-win_amd64.whl.metadata (11 kB)
  Using cached scikit_learn-1.1.3-cp310-cp310-win_amd64.whl.metadata (10 kB)
  Using cached scikit_learn-1.1.2-cp310-cp310-win_amd64.whl.metadata (10 kB)
  Using cached scikit_learn-1.1.1-cp310-cp310-win_amd64.whl.metadata (10 kB)
  Using cached scikit_learn-1.1.0-cp310-cp310-win_amd64.whl.metadata (10 kB)
  Using cached scikit_learn-1.0.2-cp310-cp310-win_amd64.whl.metadata (10 kB)
  Using cached scikit-learn-1.0.1.tar.gz (6.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Partial import of sklearn during the build process.
      Traceback (most recent call last):
        File "C:\Dev\Coqui_test\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Dev\Coqui_test\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Dev\Coqui_test\venv\lib\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 "C:\Users\Admin\AppData\Local\Temp\pip-build-env-x0sm8w1t\overlay\Lib\site-packages\setuptools\build_meta.py", line 373, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-x0sm8w1t\overlay\Lib\site-packages\setuptools\build_meta.py", line 503, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-x0sm8w1t\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
          exec(code, locals())
        File "<string>", line 319, in <module>
        File "<string>", line 311, in setup_package
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-x0sm8w1t\overlay\Lib\site-packages\numpy\distutils\core.py", line 24, in <module>
          from numpy.distutils.command import config, config_compiler, \
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-x0sm8w1t\overlay\Lib\site-packages\numpy\distutils\command\config.py", line 19, in <module>
          from numpy.distutils.mingw32ccompiler import generate_manifest
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-x0sm8w1t\overlay\Lib\site-packages\numpy\distutils\mingw32ccompiler.py", line 29, in <module>
          from distutils.msvccompiler import get_build_version as get_build_msvc_version
      ModuleNotFoundError: No module named 'distutils.msvccompiler'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with 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.

[notice] A new release of pip is available: 23.3.1 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip

Logging (environment Ubuntu 24.04):

  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Partial import of sklearn during the build process.
      Traceback (most recent call last):
        File "/home/wolke/projects/realtime_tts/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/wolke/projects/realtime_tts/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/wolke/projects/realtime_tts/lib/python3.10/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 "/tmp/pip-build-env-bkvh5hzl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 373, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/tmp/pip-build-env-bkvh5hzl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 503, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-bkvh5hzl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 318, in run_setup
          exec(code, locals())
        File "<string>", line 319, in <module>
        File "<string>", line 311, in setup_package
        File "/tmp/pip-build-env-bkvh5hzl/overlay/lib/python3.10/site-packages/numpy/distutils/core.py", line 24, in <module>
          from numpy.distutils.command import config, config_compiler, \
        File "/tmp/pip-build-env-bkvh5hzl/overlay/lib/python3.10/site-packages/numpy/distutils/command/config.py", line 19, in <module>
          from numpy.distutils.mingw32ccompiler import generate_manifest
        File "/tmp/pip-build-env-bkvh5hzl/overlay/lib/python3.10/site-packages/numpy/distutils/mingw32ccompiler.py", line 29, in <module>
          from distutils.msvccompiler import get_build_version as get_build_msvc_version
      ModuleNotFoundError: No module named 'distutils.msvccompiler'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

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

Please let me know if I can provide any more information to help track this problem down.

To Reproduce

pip install coqui-tts

Expected behavior

working installation

Logs

No response

Environment

Python 3.10.9 with pip 24.2, 24.0 and 23.3.1. Windows 11, CUDA 12.1. Also reported for Ubuntu 24.04.

Additional context

No response

@KoljaB KoljaB added the bug Something isn't working label Oct 3, 2024
@eginhard eginhard changed the title [Bug] pip install coqui-tts suddenly failing since ~2 days [Bug] Install fails with: No module named 'distutils.msvccompiler' Oct 3, 2024
@eginhard
Copy link
Member

eginhard commented Oct 3, 2024

Thank you! Yes, I saw that as well, trying some workarounds in #90 and will make a new release as soon as there is a fix. Any help is welcome, I don't have a lot of time this week.

Not sure what exactly the underlying issue is. Some relevant discussion for the same error is here:

@eginhard eginhard added the help wanted Extra attention is needed label Oct 3, 2024
@eginhard eginhard pinned this issue Oct 3, 2024
@KoljaB
Copy link
Author

KoljaB commented Oct 3, 2024

Can install my fork on fresh venv in Windows 11 with "pip install git+https://github.com/KoljaB/coqui-ai-TTS.git" again.

Setting the following dependencies in the pyproject.toml to fixed version numbers worked for me:
dependencies = [
#...
"cython==3.0.11", # Added exact version
"spacy[ja]==3.7.5", # Added exact version
"soxr==0.4.0", # Added exact version
"scikit-learn==1.5.1", # Added exact version
"contourpy==1.2.1", # Added exact version
]

Can anybody confirm?

@PabloValverde
Copy link

Thanks for the workaround @KoljaB 🙏
Using your fork I stopped getting ModuleNotFoundError: No module named 'distutils.msvccompiler' but the newly introduced upper bound of transformers transformers>=4.42.0,<4.43.0 from this commit gets me this new error

huggingface-inference-toolkit 0.5.0 requires transformers[audio,sentencepiece,sklearn,vision]==4.44.0, but you have transformers 4.42.4 which is incompatible.

Is this new upper bound in the dev branch mandatory?
Thanks

@KoljaB
Copy link
Author

KoljaB commented Oct 3, 2024

That's also contained in the dev and main branches of idiap/coqui-ai-TTS, I am not sure if this might be necessary. I didn't find huggingface-inference-toolkit to be installed on my venv (other platform, other dependency tree maybe).
I removed <4.43.0 from my fork and I can install nevertheless.

@iamdenay
Copy link

iamdenay commented Oct 4, 2024

Can install my fork on fresh venv in Windows 11 with "pip install git+https://github.com/KoljaB/coqui-ai-TTS.git" again.

Setting the following dependencies in the pyproject.toml to fixed version numbers worked for me: dependencies = [ #... "cython==3.0.11", # Added exact version "spacy[ja]==3.7.5", # Added exact version "soxr==0.4.0", # Added exact version "scikit-learn==1.5.1", # Added exact version "contourpy==1.2.1", # Added exact version ]

Can anybody confirm?

I can confirm. It worked on Ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants