KoljaB / RealtimeTTS

Converts text to speech in realtime
2.01k stars 201 forks source link

Unable to install on ubuntu 22.04 with venv #139

Closed DasWolke closed 1 month ago

DasWolke commented 1 month ago

System Info: OS: Ubuntu 22.04 Python: Python 3.10.12 PIP: pip 24.2

When trying to install the package via pip install realtimetts[all] I get the following error: I already updated pip and tried the install for cuda mentioned in the readme. I am installing this inside a venv

  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.
KoljaB commented 1 month ago

Found the following potential solution and let it summarize by ChatGPT (sorry normally I'd answer personally but this was way faster this time):

To resolve the distutils.msvccompiler error while installing packages on Ubuntu 24.04, follow these steps to downgrade the setuptools version:

Step-by-Step Guide to Downgrade setuptools:

  1. Check the Current Version of setuptools:

    First, verify which version of setuptools is currently installed on your system:

    pip show setuptools

    This will output the current version and some related information. If it's too new and causing issues, proceed to the next step.

  2. Downgrade setuptools:

    To downgrade setuptools, use pip to install a specific, stable version that works with your setup. You can replace 60.0.0 with the version you want, but using an older version like 60.0.0 is often a good starting point:

    pip install setuptools==60.0.0
  3. Verify the Downgrade:

    After the installation, check the version again to ensure it has been downgraded successfully:

    pip show setuptools
  4. Retry Your Installation:

    Now, retry the package installation that was previously failing. If the issue was caused by an incompatible version of setuptools, the downgrade should fix it.

This should resolve the issue with missing distutils.msvccompiler.

DasWolke commented 1 month ago

Thanks for the answer. I actually already went to chatGPT for this, before I came here so it's unfortunately already been tried, but didn't help..

What's weird is that it's trying to use the "mingw32ccompiler" which shouldn't be since I am on Linux..

Name: setuptools
Version: 60.0.0
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License: UNKNOWN
Location: /home/wolke/projects/realtime_tts/lib/python3.10/site-packages
Requires: 
Required-by: 
KoljaB commented 1 month ago

I just ran into the very same problem when trying to reinstall. So installation broke. Reason is the idiap coqui-tts fork having soxr>=0.3.2 in their dependencies. That always tries to install the latest version, which has been updated to 0.5.0 and seems to be corrupted when trying to import scikit-learn for themselves.

Hard fo fix within RealtimeTTS, because a underlying dependency broke. Pythons or better pypis dependencies handling is just a mess. One solution would be: I fork the idiap coqui-tss fork for myself, pin down the soxr back to soxr>=0.4.0 and force RealtimeTTS to install from my fork. But that's somehow ugly.

KoljaB commented 1 month ago

Could you please provide the full error logging?

KoljaB commented 1 month ago

I also logged an issue for the team of the idiap coqui tts fork. Hope we get this resolved soon.

DasWolke commented 1 month ago

Sure:

(realtime_tts) wolke@ing-sf-gpu-01:~/projects/realtime_tts$ pip install realtimetts[coqui]
Collecting realtimetts[coqui]
  Using cached RealTimeTTS-0.4.5-py3-none-any.whl.metadata (28 kB)
Collecting stream2sentence==0.2.5 (from realtimetts[coqui])
  Using cached stream2sentence-0.2.5-py3-none-any.whl.metadata (7.2 kB)
Collecting pydub==0.25.1 (from realtimetts[coqui])
  Using cached pydub-0.25.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting pyaudio==0.2.14 (from realtimetts[coqui])
  Using cached PyAudio-0.2.14.tar.gz (47 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting coqui-tts==0.24.1 (from realtimetts[coqui])
  Using cached coqui_tts-0.24.1-cp310-cp310-manylinux1_x86_64.whl.metadata (21 kB)
Requirement already satisfied: numpy>=1.24.3 in ./lib/python3.10/site-packages (from coqui-tts==0.24.1->realtimetts[coqui]) (2.1.1)
Collecting cython>=0.29.30 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached Cython-3.0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
Requirement already satisfied: scipy>=1.11.2 in ./lib/python3.10/site-packages (from coqui-tts==0.24.1->realtimetts[coqui]) (1.14.1)
Requirement already satisfied: torch>=2.1 in ./lib/python3.10/site-packages (from coqui-tts==0.24.1->realtimetts[coqui]) (2.3.1+cu121)
Requirement already satisfied: torchaudio in ./lib/python3.10/site-packages (from coqui-tts==0.24.1->realtimetts[coqui]) (2.3.1+cu121)
Collecting soundfile>=0.12.0 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached soundfile-0.12.1-py2.py3-none-manylinux_2_31_x86_64.whl.metadata (14 kB)
Collecting librosa>=0.10.1 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached librosa-0.10.2.post1-py3-none-any.whl.metadata (8.6 kB)
Collecting inflect>=5.6.0 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached inflect-7.4.0-py3-none-any.whl.metadata (21 kB)
Collecting tqdm>=4.64.1 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached tqdm-4.66.5-py3-none-any.whl.metadata (57 kB)
Collecting anyascii>=0.3.0 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached anyascii-0.3.2-py3-none-any.whl.metadata (1.5 kB)
Collecting pyyaml>=6.0 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Requirement already satisfied: fsspec>=2023.6.0 in ./lib/python3.10/site-packages (from fsspec[http]>=2023.6.0->coqui-tts==0.24.1->realtimetts[coqui]) (2024.2.0)
Collecting packaging>=23.1 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pysbd>=0.3.4 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached pysbd-0.3.4-py3-none-any.whl.metadata (6.1 kB)
Collecting umap-learn>=0.5.1 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached umap_learn-0.5.6-py3-none-any.whl.metadata (21 kB)
Collecting matplotlib>=3.7.0 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached matplotlib-3.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Collecting coqui-tts-trainer>=0.1 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached coqui_tts_trainer-0.1.5-py3-none-any.whl.metadata (8.4 kB)
Collecting coqpit>=0.0.16 (from coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached gruut-2.2.3.tar.gz (73 kB)
  Preparing metadata (setup.py) ... done
Collecting einops>=0.6.0 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Collecting transformers<4.41.0,>=4.33.0 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached transformers-4.40.2-py3-none-any.whl.metadata (137 kB)
Collecting encodec>=0.1.1 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached encodec-0.1.1.tar.gz (3.7 MB)
  Preparing metadata (setup.py) ... done
Collecting num2words (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached num2words-0.5.13-py3-none-any.whl.metadata (12 kB)
Collecting spacy>=3 (from spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached spacy-3.8.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (27 kB)
Collecting nltk==3.8.1 (from stream2sentence==0.2.5->realtimetts[coqui])
  Using cached nltk-3.8.1-py3-none-any.whl.metadata (2.8 kB)
Collecting emoji==2.8.0 (from stream2sentence==0.2.5->realtimetts[coqui])
  Using cached emoji-2.8.0-py2.py3-none-any.whl.metadata (5.3 kB)
Collecting stanza==1.6.1 (from stream2sentence==0.2.5->realtimetts[coqui])
  Using cached stanza-1.6.1-py3-none-any.whl.metadata (13 kB)
Collecting Babel<3.0.0,>=2.8.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached gruut-ipa-0.13.0.tar.gz (101 kB)
  Preparing metadata (setup.py) ... done
Collecting gruut_lang_en~=2.0.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached gruut_lang_en-2.0.1.tar.gz (15.3 MB)
  Preparing metadata (setup.py) ... done
Collecting jsonlines~=1.2.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached networkx-2.8.8-py3-none-any.whl.metadata (5.1 kB)
Collecting numpy>=1.24.3 (from coqui-tts==0.24.1->realtimetts[coqui])
  Using cached numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Collecting python-crfsuite~=0.9.7 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached python_crfsuite-0.9.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.3 kB)
Collecting gruut_lang_fr~=2.0.0 (from gruut[de,es,fr]==2.2.3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached gruut_lang_fr-2.0.2.tar.gz (10.9 MB)
  Preparing metadata (setup.py) ... done
Collecting gruut_lang_de~=2.0.0 (from gruut[de,es,fr]==2.2.3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached gruut_lang_de-2.0.1.tar.gz (18.1 MB)
  Preparing metadata (setup.py) ... done
Collecting gruut_lang_es~=2.0.0 (from gruut[de,es,fr]==2.2.3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached gruut_lang_es-2.0.1.tar.gz (31.4 MB)
  Preparing metadata (setup.py) ... done
Collecting click (from nltk==3.8.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Requirement already satisfied: joblib in ./lib/python3.10/site-packages (from nltk==3.8.1->stream2sentence==0.2.5->realtimetts[coqui]) (1.4.2)
Collecting regex>=2021.8.3 (from nltk==3.8.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached regex-2024.9.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB)
Collecting protobuf>=3.15.0 (from stanza==1.6.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached protobuf-5.28.2-cp38-abi3-manylinux2014_x86_64.whl.metadata (592 bytes)
Collecting requests (from stanza==1.6.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting psutil>=5 (from coqui-tts-trainer>=0.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached psutil-6.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (21 kB)
Collecting tensorboard>=2.17.0 (from coqui-tts-trainer>=0.1->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached aiohttp-3.10.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.6 kB)
Collecting more-itertools>=8.5.0 (from inflect>=5.6.0->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached audioread-3.0.1-py3-none-any.whl.metadata (8.4 kB)
Requirement already satisfied: scikit-learn>=0.20.0 in ./lib/python3.10/site-packages (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui]) (1.5.2)
Collecting decorator>=4.3.0 (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB)
Collecting numba>=0.51.0 (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached numba-0.60.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (2.7 kB)
Collecting pooch>=1.1 (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached pooch-1.8.2-py3-none-any.whl.metadata (10 kB)
Collecting soxr>=0.3.2 (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached soxr-0.5.0.post1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)
Requirement already satisfied: typing-extensions>=4.1.1 in ./lib/python3.10/site-packages (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui]) (4.9.0)
Collecting lazy-loader>=0.1 (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached lazy_loader-0.4-py3-none-any.whl.metadata (7.6 kB)
Collecting msgpack>=1.0 (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached msgpack-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)
Collecting contourpy>=1.0.1 (from matplotlib>=3.7.0->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached contourpy-1.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.4 kB)
Collecting cycler>=0.10 (from matplotlib>=3.7.0->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached fonttools-4.54.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (163 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib>=3.7.0->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached kiwisolver-1.4.7-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (6.3 kB)
Collecting pillow>=8 (from matplotlib>=3.7.0->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached pillow-10.4.0-cp310-cp310-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib>=3.7.0->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached docopt-0.6.2.tar.gz (25 kB)
  Preparing metadata (setup.py) ... done
Collecting cffi>=1.0 (from soundfile>=0.12.0->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached cffi-1.17.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting spacy-legacy<3.1.0,>=3.0.11 (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached murmurhash-1.0.10-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.0 kB)
Collecting cymem<2.1.0,>=2.0.2 (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached cymem-2.0.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)
Collecting preshed<3.1.0,>=3.0.2 (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached preshed-3.0.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.2 kB)
Collecting thinc<8.4.0,>=8.3.0 (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached thinc-8.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (15 kB)
Collecting wasabi<1.2.0,>=0.9.1 (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached srsly-2.4.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)
Collecting catalogue<2.1.0,>=2.0.6 (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached typer-0.12.5-py3-none-any.whl.metadata (15 kB)
Collecting pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4 (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached pydantic-2.9.2-py3-none-any.whl.metadata (149 kB)
Requirement already satisfied: jinja2 in ./lib/python3.10/site-packages (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui]) (3.1.3)
Requirement already satisfied: setuptools in ./lib/python3.10/site-packages (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui]) (60.0.0)
Collecting langcodes<4.0.0,>=3.2.0 (from spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached SudachiPy-0.6.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)
Collecting sudachidict-core>=20211220 (from spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached SudachiDict_core-20240716-py3-none-any.whl.metadata (2.5 kB)
Requirement already satisfied: filelock in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (3.13.1)
Requirement already satisfied: sympy in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (1.12)
Requirement already satisfied: nvidia-cuda-nvrtc-cu12==12.1.105 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (12.1.105)
Requirement already satisfied: nvidia-cuda-runtime-cu12==12.1.105 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (12.1.105)
Requirement already satisfied: nvidia-cuda-cupti-cu12==12.1.105 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (12.1.105)
Requirement already satisfied: nvidia-cudnn-cu12==8.9.2.26 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (8.9.2.26)
Requirement already satisfied: nvidia-cublas-cu12==12.1.3.1 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (12.1.3.1)
Requirement already satisfied: nvidia-cufft-cu12==11.0.2.54 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (11.0.2.54)
Requirement already satisfied: nvidia-curand-cu12==10.3.2.106 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (10.3.2.106)
Requirement already satisfied: nvidia-cusolver-cu12==11.4.5.107 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (11.4.5.107)
Requirement already satisfied: nvidia-cusparse-cu12==12.1.0.106 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (12.1.0.106)
Requirement already satisfied: nvidia-nccl-cu12==2.20.5 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (2.20.5)
Requirement already satisfied: nvidia-nvtx-cu12==12.1.105 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (12.1.105)
Requirement already satisfied: triton==2.3.1 in ./lib/python3.10/site-packages (from torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (2.3.1)
Requirement already satisfied: nvidia-nvjitlink-cu12 in ./lib/python3.10/site-packages (from nvidia-cusolver-cu12==11.4.5.107->torch>=2.1->coqui-tts==0.24.1->realtimetts[coqui]) (12.1.105)
Collecting huggingface-hub<1.0,>=0.19.3 (from transformers<4.41.0,>=4.33.0->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached huggingface_hub-0.25.1-py3-none-any.whl.metadata (13 kB)
Collecting tokenizers<0.20,>=0.19 (from transformers<4.41.0,>=4.33.0->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached tokenizers-0.19.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)
Collecting safetensors>=0.4.1 (from transformers<4.41.0,>=4.33.0->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached safetensors-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.8 kB)
Collecting pynndescent>=0.5 (from umap-learn>=0.5.1->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached frozenlist-1.4.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.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==0.24.1->realtimetts[coqui])
  Using cached multidict-6.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.0 kB)
Collecting yarl<2.0,>=1.12.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached yarl-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (50 kB)
Collecting async-timeout<5.0,>=4.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2023.6.0->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached 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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached 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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached llvmlite-0.43.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.8 kB)
Collecting platformdirs>=2.5.0 (from pooch>=1.1->librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached 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==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB)
Collecting charset-normalizer<4,>=2 (from requests->stanza==1.6.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests->stanza==1.6.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests->stanza==1.6.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached urllib3-2.2.3-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests->stanza==1.6.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
Requirement already satisfied: threadpoolctl>=3.1.0 in ./lib/python3.10/site-packages (from scikit-learn>=0.20.0->librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui]) (3.5.0)
Collecting absl-py>=0.4 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached grpcio-1.66.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.9 kB)
Collecting markdown>=2.6.8 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached Markdown-3.7-py3-none-any.whl.metadata (7.0 kB)
Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached tensorboard_data_server-0.7.2-py3-none-manylinux_2_31_x86_64.whl.metadata (1.1 kB)
Collecting werkzeug>=1.0.1 (from tensorboard>=2.17.0->coqui-tts-trainer>=0.1->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached blis-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.6 kB)
Collecting confection<1.0.0,>=0.0.1 (from thinc<8.4.0,>=8.3.0->spacy>=3->spacy[ja]>=3->coqui-tts==0.24.1->realtimetts[coqui])
  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==0.24.1->realtimetts[coqui])
  Using cached thinc-8.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (15 kB)
  Using cached thinc-8.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (15 kB)
Collecting tensorboard>=2.17.0 (from coqui-tts-trainer>=0.1->coqui-tts==0.24.1->realtimetts[coqui])
  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>=3.15.0 (from stanza==1.6.1->stream2sentence==0.2.5->realtimetts[coqui])
  Using cached protobuf-4.25.5-cp37-abi3-manylinux2014_x86_64.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==0.24.1->realtimetts[coqui])
  Using cached soxr-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.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-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.5 kB)
  Using cached soxr-0.3.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.5 kB)
  Using cached soxr-0.3.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.4 kB)
  Using cached soxr-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.4 kB)
  Using cached soxr-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.4 kB)
  Using cached soxr-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.0 kB)
  Using cached soxr-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.0 kB)
Collecting scikit-learn>=0.20.0 (from librosa>=0.10.1->coqui-tts==0.24.1->realtimetts[coqui])
  Using cached scikit_learn-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (13 kB)
  Using cached scikit_learn-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (12 kB)
  Using cached scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.4.1.post1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.4.0-1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
  Using cached scikit_learn-1.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
  Using cached scikit_learn-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
  Using cached scikit_learn-1.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
  Using cached scikit_learn-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (10 kB)
  Using cached scikit_learn-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.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 "/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-nixgxwhz/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-nixgxwhz/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-nixgxwhz/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-nixgxwhz/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-nixgxwhz/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-nixgxwhz/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.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
KoljaB commented 1 month ago

Working on a fix now. See #90, #91, #92.

Quickfix for installation of coqui tts. RealtimeTTS still needs some changes, might wait for idiap team or temporary reference the fork, not sure yet.

eginhard commented 1 month ago

@KoljaB I released coqui-tts 0.24.2, which should work fine again. Let me know if there are still any issues and thank you for your fix!

KoljaB commented 1 month ago

Just tested 0.24.2, Installation went fine, first tests with RealtimeTTS look good. Thank's a lot for your insanely fast reaction.

DasWolke commented 1 month ago

After updating the installation worked. Thanks a lot for the swift resolution!