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

Error: Could not install packages due to an OSError [Bug] #3772

Open
soh-123 opened this issue Jun 1, 2024 · 5 comments
Open

Error: Could not install packages due to an OSError [Bug] #3772

soh-123 opened this issue Jun 1, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@soh-123
Copy link

soh-123 commented Jun 1, 2024

Describe the bug

While installing TTS on kaggle notebook I get the following error:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/conda/lib/python3.10/site-packages/aiohttp-3.9.1.dist-info/METADATA'

To Reproduce

!apt-get install espeak-ng -y
!pip install -U torch torchaudio
!git clone https://github.com/coqui-ai/TTS
%cd TTS
!pip install -e .

Expected behavior

Success message

Logs

Obtaining file:///kaggle/working/TTS
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: cython>=0.29.30 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (3.0.8)
Requirement already satisfied: scipy>=1.11.2 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (1.11.4)
Requirement already satisfied: torch>=2.1 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (2.3.0)
Requirement already satisfied: torchaudio in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (2.3.0)
Requirement already satisfied: soundfile>=0.12.0 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (0.12.1)
Requirement already satisfied: librosa>=0.10.0 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (0.10.2.post1)
Collecting scikit-learn>=1.3.0 (from TTS==0.22.0)
  Using cached scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Collecting inflect>=5.6.0 (from TTS==0.22.0)
  Using cached inflect-7.2.1-py3-none-any.whl.metadata (21 kB)
Requirement already satisfied: tqdm>=4.64.1 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (4.66.4)
Collecting anyascii>=0.3.0 (from TTS==0.22.0)
  Using cached anyascii-0.3.2-py3-none-any.whl.metadata (1.5 kB)
Requirement already satisfied: pyyaml>=6.0 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (6.0.1)
Requirement already satisfied: fsspec>=2023.6.0 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (2024.3.1)
Requirement already satisfied: aiohttp>=3.8.1 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (3.9.1)
Collecting packaging>=23.1 (from TTS==0.22.0)
  Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting mutagen==1.47.0 (from TTS==0.22.0)
  Using cached mutagen-1.47.0-py3-none-any.whl.metadata (1.7 kB)
Requirement already satisfied: flask>=2.0.1 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (3.0.3)
Collecting pysbd>=0.3.4 (from TTS==0.22.0)
  Using cached pysbd-0.3.4-py3-none-any.whl.metadata (6.1 kB)
Requirement already satisfied: umap-learn>=0.5.1 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (0.5.6)
Collecting pandas<2.0,>=1.4 (from TTS==0.22.0)
  Using cached pandas-1.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Requirement already satisfied: matplotlib>=3.7.0 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (3.7.5)
Collecting trainer>=0.0.36 (from TTS==0.22.0)
  Using cached trainer-0.0.36-py3-none-any.whl.metadata (8.1 kB)
Collecting coqpit>=0.0.16 (from TTS==0.22.0)
  Using cached coqpit-0.0.17-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: jieba in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (0.42.1)
Collecting pypinyin (from TTS==0.22.0)
  Using cached pypinyin-0.51.0-py2.py3-none-any.whl.metadata (12 kB)
Collecting hangul-romanize (from TTS==0.22.0)
  Using cached hangul_romanize-0.1.0-py3-none-any.whl.metadata (1.2 kB)
Collecting gruut==2.2.3 (from gruut[de,es,fr]==2.2.3->TTS==0.22.0)
  Using cached gruut-2.2.3.tar.gz (73 kB)
  Preparing metadata (setup.py) ... done
Collecting jamo (from TTS==0.22.0)
  Using cached jamo-0.4.1-py3-none-any.whl.metadata (2.3 kB)
Requirement already satisfied: nltk in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (3.2.4)
Collecting g2pkk>=0.1.1 (from TTS==0.22.0)
  Using cached g2pkk-0.1.2-py3-none-any.whl.metadata (2.0 kB)
Collecting bangla (from TTS==0.22.0)
  Using cached bangla-0.0.2-py2.py3-none-any.whl.metadata (4.5 kB)
Collecting bnnumerizer (from TTS==0.22.0)
  Using cached bnnumerizer-0.0.2.tar.gz (4.7 kB)
  Preparing metadata (setup.py) ... done
Collecting bnunicodenormalizer (from TTS==0.22.0)
  Using cached bnunicodenormalizer-0.1.7-py3-none-any.whl.metadata (22 kB)
Collecting einops>=0.6.0 (from TTS==0.22.0)
  Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: transformers>=4.33.0 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (4.41.1)
Collecting encodec>=0.1.1 (from TTS==0.22.0)
  Using cached encodec-0.1.1.tar.gz (3.7 MB)
  Preparing metadata (setup.py) ... done
Collecting unidecode>=1.3.2 (from TTS==0.22.0)
  Using cached Unidecode-1.3.8-py3-none-any.whl.metadata (13 kB)
Collecting num2words (from TTS==0.22.0)
  Using cached num2words-0.5.13-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: spacy>=3 in /opt/conda/lib/python3.10/site-packages (from spacy[ja]>=3->TTS==0.22.0) (3.7.3)
Collecting numpy==1.22.0 (from TTS==0.22.0)
  Using cached numpy-1.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.0 kB)
Requirement already satisfied: numba>=0.57.0 in /opt/conda/lib/python3.10/site-packages (from TTS==0.22.0) (0.58.1)
Requirement already satisfied: Babel<3.0.0,>=2.8.0 in /opt/conda/lib/python3.10/site-packages (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->TTS==0.22.0) (2.14.0)
Collecting dateparser~=1.1.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->TTS==0.22.0)
  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->TTS==0.22.0)
  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->TTS==0.22.0)
  Using cached gruut_lang_en-2.0.0.tar.gz (15.2 MB)
  Preparing metadata (setup.py) ... done
Collecting jsonlines~=1.2.0 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->TTS==0.22.0)
  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->TTS==0.22.0)
  Using cached networkx-2.8.8-py3-none-any.whl.metadata (5.1 kB)
Collecting python-crfsuite~=0.9.7 (from gruut==2.2.3->gruut[de,es,fr]==2.2.3->TTS==0.22.0)
  Using cached python_crfsuite-0.9.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.2 kB)
Collecting gruut_lang_de~=2.0.0 (from gruut[de,es,fr]==2.2.3->TTS==0.22.0)
  Using cached gruut_lang_de-2.0.0.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->TTS==0.22.0)
  Using cached gruut_lang_es-2.0.0.tar.gz (31.4 MB)
  Preparing metadata (setup.py) ... done
Collecting gruut_lang_fr~=2.0.0 (from gruut[de,es,fr]==2.2.3->TTS==0.22.0)
  Using cached gruut_lang_fr-2.0.2.tar.gz (10.9 MB)
  Preparing metadata (setup.py) ... done
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/conda/lib/python3.10/site-packages/aiohttp-3.9.1.dist-info/METADATA'

Environment

- Pytorch Version (2.3.0+cu121)
- Python Version (3.10.13)
- Kaggle
- GPU model (T4)
- Using Pip

Additional context

No response

@soh-123 soh-123 added the bug Something isn't working label Jun 1, 2024
@eginhard
Copy link
Contributor

eginhard commented Jun 3, 2024

Not sure about the issue, but you could try to use our fork (just use !git clone https://github.com/idiap/coqui-ai-TTS.git instead). I've updated and simplified many dependencies there, so it should generally cause fewer conflicts.

@soh-123
Copy link
Author

soh-123 commented Jun 3, 2024

Thank you @eginhard for this solution, unfortunately it didn;t solves the issue

@eginhard
Copy link
Contributor

eginhard commented Jun 3, 2024

Looks like the aiohttp install there is just broken. It works for me after first removing that with !rm /opt/conda/lib/python3.10/site-packages/aiohttp-3.9.1.dist-info -rdf

@etietopabraham
Copy link

@eginhard removing aiohttp-3.9.1 worked for me too. 🕺🏾🕺🏾🕺🏾

@soh-123
Copy link
Author

soh-123 commented Jun 5, 2024

yes, it worked
Thak you @eginhard

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

No branches or pull requests

3 participants