question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Training code's dependency on pyworld breaks TTS Windows pip installation

See original GitHub issue

Describe the bug

Environment: OS Name Microsoft Windows 10 Pro Version 10.0.19044 Build 19044 Python 3.9.13

Running pip install TTS in Windows triggers a known build error for one of its dependencies:

The pyworld build error is fixable by installing correct MSVC toolset (Microsoft Visual C++ 14.0 or greater is required.) in https://visualstudio.microsoft.com/visual-cpp-build-tools/ but will lead to another link error possibly related to Cython version (similar issue: https://github.com/wxWidgets/Phoenix/pull/2017)

A cleaner way is to remove dependency on pyworld for TTS pip installation. The pip installation option is for people who are only interested in synthesizing speech with the released 🐸TTS models, not for training the model. Correct me if wrong, there is no need to depend on pyworld which is, as I understand, only for training the model.

To Reproduce

  1. Run the following command ‘pip install TTS’ in Windows
  2. See error

Expected behavior

No response

Logs

No response

Environment

{
    "CUDA": {
        "GPU": [],
        "available": false,
        "version": "11.3"
    },
    "Packages": {
        "PyTorch_debug": false,
        "PyTorch_version": "1.11.0+cu113",
        "TTS": "0.7.1",
        "numpy": "1.21.6"
    },
    "System": {
        "OS": "Windows",
        "architecture": [
            "64bit",
            "WindowsPE"
        ],
        "processor": "Intel64 Family 6 Model 140 Stepping 1, GenuineIntel",
        "python": "3.9.13",
        "version": "10.0.19044"
    }
}

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erogolcommented, Sep 8, 2022

To get rid of this we can switch to pyin. It is slower but it works 😃.

Would you deal with that @Edresson?

0reactions
Edressoncommented, Sep 9, 2022

This issue was solved with PR #1946 where we replaced the Pyworld with Librosa Pyin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] pip install tts fails · Issue #2075 · coqui-ai/TTS - GitHub
pip install tts failing on Windows On Windows, running "pip install tts" ... I had some struggles with pyworld dependency on Windows too....
Read more >
`pip install` Gives Error on Some Packages - Stack Overflow
The real error in your case is: ImportError: cannot import name 'msvccompiler' from 'distutils'. It occured because setuptools has broken ...
Read more >
Dependency Resolution - pip documentation v22.3.1
Dependency Resolution#. pip is capable of determining and installing the dependencies of packages. The process of determining which version of a dependency ......
Read more >
TTS - PyPI
TTS is a library for advanced Text-to-Speech generation. It's built on the latest research, was designed to achieve the best trade-off among ease-of-training, ......
Read more >
Using Python's pip to Manage Your Projects' Dependencies
What is pip? In this beginner-friendly tutorial, you'll learn how to use pip, the standard package manager for Python, so that you can ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found