huggingface / speech-to-speech

Speech To Speech: an effort for an open-sourced and modular GPT4-o
Apache License 2.0
3.51k stars 364 forks source link

Cannot install dependencies using "uv pip install -r requirements.txt" in WSL2 Ubuntu 24.04 #135

Open ngtrphuong opened 1 week ago

ngtrphuong commented 1 week ago

Hi,

I tried too many solutions out there on Issues tab, SO but still unsuccessful in installing the virtual env for this repo. Below is the error log:

Using Python 3.12.3 environment at venv Updated https://github.com/andimarafioti/MeloTTS.git (22866a3) Updated https://github.com/huggingface/parler-tts.git (650288a) Updated https://github.com/andimarafioti/moonshine.git (21a2225) Updating https://github.com/descriptinc/audiotools (HEAD) error: Failed to download and build:descript-audiotools @ git+https://github.com/descriptinc/audiotools Caused by: Git operation failed Caused by: process didn't exit successfully:/usr/bin/git reset --hard 348ebf2034ce24e2a91a553e3171cb00c0c71678` (exit status: 128) --- stderr Downloading tests/audio/ir/h179_Bar_1txts.wav (50 KB) Error downloading object: tests/audio/ir/h179_Bar_1txts.wav (206aee1): Smudge error: Error downloading tests/audio/ir/h179_Bar_1txts.wav (206aee1e87c966ead8a5755b2b90470eaa7c19d55ddbbbeca263ce203c8cab3a): error transferring "206aee1e87c966ead8a5755b2b90470eaa7c19d55ddbbbeca263ce203c8cab3a": [0] remote missing object 206aee1e87c966ead8a5755b2b90470eaa7c19d55ddbbbeca263ce203c8cab3a

Errors logged to '/home/test/.cache/uv/git-v0/checkouts/6d2e2a8294603438/348ebf2/.git/lfs/logs/20241105T094353.722793724.log'. Use git lfs logs last to view the log. error: external filter 'git-lfs filter-process' failed fatal: tests/audio/ir/h179_Bar_1txts.wav: smudge filter lfs failed

`

Are there anyone encountered the same issue and had the solution to overcome this?

andimarafioti commented 6 days ago

Can you try with python 3.11? I had some issues with 3.12 but they looked different to yours

ngtrphuong commented 5 days ago

Same issue as python 3.10, 3.11 as well, I must use the plain-old, traditional way to install python libraries, just pip install -r requirements.txt and it works,

Seems some changes recently in audiotools repo caused this issue, I guess

andimarafioti commented 4 days ago

Thanks for reporting, I'll add it to the readme

AslamThachapalli commented 1 day ago

Same issue is for me. Here I am using mac for the program.

Tried on python 3.12, 3.11, 3.10, 3.9 as well.

When using uv pip install -r requirements_mac.txt the error I am getting is:

 × No solution found when resolving dependencies:
  ╰─▶ Because torch==2.4.0 has no wheels with a matching Python implementation tag and you require torch==2.4.0, we can conclude that your requirements are unsatisfiable.

Tried using the pip install -r requirements_mac.txt as well. It errs out with

ERROR: Could not find a version that satisfies the requirement torch==2.4.0 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch==2.4.0

Just tried changing the torch version in case to 2.2.2. Erred out with

ERROR: Could not find a version that satisfies the requirement mlx (from lightning-whisper-mlx) (from versions: none)
ERROR: No matching distribution found for mlx