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

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

Open
ngtrphuong opened this issue Nov 5, 2024 · 5 comments

Comments

@ngtrphuong
Copy link

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
Copy link
Member

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

@ngtrphuong
Copy link
Author

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
Copy link
Member

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

@AslamThachapalli
Copy link

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

@DarrenTsung
Copy link

^Had the same issue, but switching uv off of python 3.13 (uv venv -p 3.10) fixed the install.

From a similar thread: astral-sh/uv#7516 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants