seamless_communication
seamless_communication copied to clipboard
cannot install requirements
after
conda create -n new_clean_env
coda activate new_clean_env
git clone https://github.com/facebookresearch/seamless_communication.git
I followed the README instructions and get the bellow error.
ERROR: Cannot install -r requirements.txt (line 4), -r requirements.txt (line 5), fairseq2 and torch~=2.1.0 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested torch~=2.1.0
torchaudio 2.1.0 depends on torch==2.1.0
fairseq2 0.2.0 depends on torch>=1.12.1
fairseq2n 0.2.0 depends on torch==2.0.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
So I tried to install them individually following the fairseq installation, which was successful (be sure libsndfile is in your paths!), though fairseq installed torch 2.0.1, which was unsurprisingly later incompatible with torchaudio 2.1.0.
In the end I the relaxed the below in requirements.txt
for a successful run of gradio app.py
torch~=2.0.1
torchaudio~=2.0.1
Not sure if it's worth a PR but thought to inform your team, and any others who reach the same issue.
System Info: Python 3.11.5 Apple M1 MacOS Ventura 13.6
Hey @vincentwi, thanks for opening this issue. I can confirm that this is a bug in the pre-built fairseq2n package for Mac. It accidentally depends on PyTorch 2.0.1 instead of 2.1.0. I am working on a fix now and will publish v0.2.1 of fairseq2 later today that fixes this.
@cbalioglu I still find this error in the latest version.. i'm building from demo/m4tv2 . how do i get the latest update?
I'm running: M2 Macbook MacOS 13.2.1 python 3.11.5
ERROR: Cannot install -r requirements.txt (line 4), -r requirements.txt (line 5), fairseq2n==0.2.0 and torch~=2.1.0 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested torch~=2.1.0
torchaudio 2.1.0 depends on torch==2.1.0
fairseq2 0.2.0 depends on torch>=1.12.1
fairseq2n 0.2.0 depends on torch==2.0.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts```
@darkheart88 landing today. I will keep you posted.
just the same,mac m1
Using cached torch-2.1.0-cp311-none-macosx_11_0_arm64.whl.metadata (24 kB) INFO: pip is still looking at multiple versions of fairseq2n to determine which version is compatible with other requirements. This could take a while. ERROR: Cannot install -r requirements.txt (line 4), -r requirements.txt (line 5), fairseq2 and torch~=2.1.0 because these package versions have conflicting dependencies.
The conflict is caused by: The user requested torch~=2.1.0 torchaudio 2.1.0 depends on torch==2.1.0 fairseq2 0.2.0 depends on torch>=1.12.1 fairseq2n 0.2.0 depends on torch==2.0.1
To fix this you could try to:
- loosen the range of package versions you've specified
- remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts