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
31.64k stars 3.78k forks source link

[Bug] ModuleNotFoundError: No module named 'TTS' (From inside the TTS folder) #3712

Closed MackNcD closed 2 days ago

MackNcD commented 2 months ago

Describe the bug

File "[redacted]\TTS-dev\TTS\demos\xtts_ft_demo\xtts_demo.py", line 14, in from TTS.demos.xtts_ft_demo.utils.formatter import format_audio_list ModuleNotFoundError: No module named 'TTS'

This is from within the TTS file itself, using the demo inside the extracted TTS-dev file. How would an IDE (vscode) not pick up on files that aren't even part of the .venv library?

To Reproduce

created environment is vscode pip install -r requirements.txt pip install gradio pip install faster_whisper (ran xtts_demo.py) ModuleNotFoundError: No module named 'TTS'

Expected behavior

xtts_demo.py to load

Logs

absl-py==2.1.0
aiofiles==23.2.1
aiohttp==3.9.5
aiosignal==1.3.1
altair==5.3.0
annotated-types==0.6.0
anyascii==0.3.2
anyio==4.3.0
async-timeout==4.0.3
attrs==23.2.0
audioread==3.0.1
av==11.0.0
Babel==2.14.0
bangla==0.0.2
blinker==1.8.0
blis==0.7.11
bnnumerizer==0.0.2
bnunicodenormalizer==0.1.6
catalogue==2.0.10
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
cloudpathlib==0.16.0
colorama==0.4.6
coloredlogs==15.0.1
confection==0.1.4
contourpy==1.2.1
coqpit==0.0.17
ctranslate2==4.2.1
cycler==0.12.1
cymem==2.0.8
Cython==3.0.10
dateparser==1.1.8
decorator==5.1.1
docopt==0.6.2
einops==0.8.0
encodec==0.1.1
exceptiongroup==1.2.1
fastapi==0.110.2
faster-whisper==1.0.1
ffmpy==0.3.2
filelock==3.13.4
Flask==3.0.3
flatbuffers==24.3.25
fonttools==4.51.0
frozenlist==1.4.1
fsspec==2024.3.1
g2pkk==0.1.2
gradio==4.28.3
gradio_client==0.16.0
grpcio==1.62.2
gruut==2.2.3
gruut-ipa==0.13.0
gruut_lang_de==2.0.0
gruut_lang_en==2.0.0
gruut_lang_es==2.0.0
gruut_lang_fr==2.0.2
h11==0.14.0
hangul-romanize==0.1.0
httpcore==1.0.5
httpx==0.27.0
huggingface-hub==0.22.2
humanfriendly==10.0
idna==3.7
importlib_resources==6.4.0
inflect==7.2.1
intel-openmp==2021.4.0
itsdangerous==2.2.0
jamo==0.4.1
jieba==0.42.1
Jinja2==3.1.3
joblib==1.4.0
jsonlines==1.2.0
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
kiwisolver==1.4.5
langcodes==3.4.0
language_data==1.2.0
lazy_loader==0.4
librosa==0.10.0
llvmlite==0.42.0
marisa-trie==1.1.0
Markdown==3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.8.4
mdurl==0.1.2
mkl==2021.4.0
more-itertools==10.2.0
mpmath==1.3.0
msgpack==1.0.8
multidict==6.0.5
murmurhash==1.0.10
mutagen==1.47.0
networkx==2.8.8
nltk==3.8.1
num2words==0.5.13
numba==0.59.1
numpy==1.22.0
onnxruntime==1.17.3
orjson==3.10.1
packaging==24.0
pandas==1.5.3
pillow==10.3.0
platformdirs==4.2.1
pooch==1.8.1
preshed==3.0.9
protobuf==5.26.1
psutil==5.9.8
pycparser==2.22
pydantic==2.7.1
pydantic_core==2.18.2
pydub==0.25.1
Pygments==2.17.2
pynndescent==0.5.12
pyparsing==3.1.2
pypinyin==0.51.0
pyreadline3==3.4.1
pysbd==0.3.4
python-crfsuite==0.9.10
python-dateutil==2.9.0.post0
python-multipart==0.0.9
pytz==2024.1
PyYAML==6.0.1
referencing==0.35.0
regex==2024.4.16
requests==2.31.0
rich==13.7.1
rpds-py==0.18.0
ruff==0.4.2
safetensors==0.4.3
scikit-learn==1.4.2
scipy==1.11.4
semantic-version==2.10.0
shellingham==1.5.4
six==1.16.0
smart-open==6.4.0
sniffio==1.3.1
soundfile==0.12.1
soxr==0.3.7
spacy==3.7.4
spacy-legacy==3.0.12
spacy-loggers==1.0.5
srsly==2.4.8
starlette==0.37.2
SudachiDict-core==20240409
SudachiPy==0.6.8
sympy==1.12
tbb==2021.12.0
tensorboard==2.16.2
tensorboard-data-server==0.7.2
thinc==8.2.3
threadpoolctl==3.4.0
tokenizers==0.15.2
tomlkit==0.12.0
toolz==0.12.1
torch==2.3.0
torchaudio==2.3.0
tqdm==4.66.2
trainer==0.0.36
transformers==4.40.1
typeguard==4.2.1
typer==0.12.3
typing_extensions==4.11.0
tzdata==2024.1
tzlocal==5.2
umap-learn==0.5.6
Unidecode==1.3.8
urllib3==2.2.1
uvicorn==0.29.0
wasabi==1.1.2
weasel==0.3.4
websockets==11.0.3
Werkzeug==3.0.2
yarl==1.9.4

Environment

{
    "CUDA": {
        "GPU": [],
        "available": false,
        "version": null
    },
    "Packages": {
        "PyTorch_debug": false,
        "PyTorch_version": "2.3.0+cpu",
        "TTS": "0.22.0",
        "numpy": "1.22.0"
    },
    "System": {
        "OS": "Windows",
        "architecture": [
            "64bit",
            "WindowsPE"
        ],
        "processor": "AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD",
        "python": "3.10.11",
        "version": "10.0.22631"
    }
}

Additional context

No response

eginhard commented 2 months ago

You haven't actually installed the TTS package into your environment. Add pip install -e . after installing the requirements.

stale[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels.

MackNcD commented 3 weeks ago

You haven't actually installed the TTS package into your environment. Add pip install -e . after installing the requirements.

Thank you!