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.62k stars 4.36k forks source link

[Bug] pip install TTS fails #3013

Closed jonaslund closed 1 year ago

jonaslund commented 1 year ago

Describe the bug

pip install TTS fails on Macbook with Python 3.8

To Reproduce

Run pip install TTS with python 3.8 on Mac

Expected behavior

To be installed successfully

Logs

Collecting scikit-learn>=0.20.0 (from librosa==0.10.0.*->TTS)
  Obtaining dependency information for scikit-learn>=0.20.0 from https://files.pythonhosted.org/packages/a8/27/0e2a1d7b30bb8ef2042630ff92e17a1d4edb1e221f8193695eb85ca8ecdc/scikit_learn-1.3.0-cp38-cp38-macosx_12_0_arm64.whl.metadata
  Using cached scikit_learn-1.3.0-cp38-cp38-macosx_12_0_arm64.whl.metadata (11 kB)
  Using cached scikit_learn-1.2.2-cp38-cp38-macosx_12_0_arm64.whl (8.3 MB)
  Using cached scikit_learn-1.2.1-cp38-cp38-macosx_12_0_arm64.whl (8.3 MB)
  Using cached scikit_learn-1.2.0-cp38-cp38-macosx_12_0_arm64.whl (8.2 MB)
  Using cached scikit_learn-1.1.3-cp38-cp38-macosx_12_0_arm64.whl (7.6 MB)
  Using cached scikit_learn-1.1.2-cp38-cp38-macosx_12_0_arm64.whl (7.6 MB)
  Using cached scikit_learn-1.1.1-cp38-cp38-macosx_12_0_arm64.whl (7.6 MB)
  Using cached scikit_learn-1.1.0-cp38-cp38-macosx_12_0_arm64.whl (7.5 MB)
  Using cached scikit_learn-1.0.2-cp38-cp38-macosx_12_0_arm64.whl (6.9 MB)
  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
  ╰─> [810 lines of output]
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/homebrew/anaconda3/envs/sadtalker/include -arch arm64 -I/opt/homebrew/anaconda3/envs/sadtalker/include -arch arm64

      compile options: '-c'
      gcc: test_program.c
      gcc objects/test_program.o -o test_program
      C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/homebrew/anaconda3/envs/sadtalker/include -arch arm64 -I/op

          config_list = self.get_subpackage(subpackage_name, subpackage_path,
        File "/private/var/folders/qc/wj77611s5kzcb_cvgjjqmyxc0000gn/T/pip-build-env-8krdci48/overlay/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 982, in get_subpackage
          config = self._get_configuration_from_setup_py(
        File "/private/var/folders/qc/wj77611s5kzcb_cvgjjqmyxc0000gn/T/pip-build-env-8krdci48/overlay/lib/python3.8/site-packages/numpy/distutils/misc_util.py", line 924, in _get_configuration_from_setup_py
          config = setup_module.configuration(*args)
        File "sklearn/setup.py", line 85, in configuration
          cythonize_extensions(top_path, config)
        File "/private/var/folders/qc/wj77611s5kzcb_cvgjjqmyxc0000gn/T/pip-install-7ni4icqg/scikit-learn_b39a58e2234548e6b276db76ba03eda9/sklearn/_build_utils/__init__.py", line 73, in cythonize_extensions
          config.ext_modules = cythonize(
        File "/private/var/folders/qc/wj77611s5kzcb_cvgjjqmyxc0000gn/T/pip-build-env-8krdci48/overlay/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1125, in cythonize
          result.get(99999)  # seconds
        File "/opt/homebrew/anaconda3/envs/sadtalker/lib/python3.8/multiprocessing/pool.py", line 771, in get
          raise self._value
      Cython.Compiler.Errors.CompileError: sklearn/ensemble/_hist_gradient_boosting/splitting.pyx
      [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

Environment

python: 3.8

Additional context

pip install TTS fail

erogol commented 1 year ago

@jonaslund did you try the latest release?

mathisfouques commented 1 year ago

Same problem here, trying to install 0.17.8

(Mac M1 Pro)

albertchristianto commented 1 year ago

Hi,

Same problem with Ubuntu 20.04, python 3.8. I saw a conflicting documentation in the TTS repo, the readme states that TTS library support python version 3.7-3.11. however inside the setup.py, the python version is 3.9-3.11. Is this related with the failing pip install ?

best regards, Albert

erogol commented 1 year ago

docs are old. We dropped 3.8 recently. It only supports 3.9 3.10 3.11 currently.