seamless_communication icon indicating copy to clipboard operation
seamless_communication copied to clipboard

cannot install requirements

Open vincentwi opened this issue 1 year ago • 4 comments

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

vincentwi avatar Dec 03 '23 22:12 vincentwi

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 avatar Dec 14 '23 21:12 cbalioglu

@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 avatar Jan 11 '24 07:01 darkheart88

@darkheart88 landing today. I will keep you posted.

cbalioglu avatar Jan 11 '24 19:01 cbalioglu

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:

  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

zsq2010 avatar Jun 21 '24 10:06 zsq2010