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

Having trouble with hydracor and fairseq #237

Open
Beatwrecka opened this issue Aug 6, 2024 · 1 comment
Open

Having trouble with hydracor and fairseq #237

Beatwrecka opened this issue Aug 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Beatwrecka
Copy link

Tried to install but when I run the run.sh I get a load off errors to do with incompatible versions. Managed to sort most of them out but fairseq==0.12.2 requires hydra-core==1.0.7 , and audio craft requires hydra-core>=1.1

Chat GPT suggested running them in their own separate venv's but I'm new to all of this so I don't know if that's going to cause more problems?

Here's the error:

(venv) (base) jonnydunseath@Jonathans-MBP audio-webui % pip uninstall hydra-core omegaconf

Found existing installation: hydra-core 1.3.2
Uninstalling hydra-core-1.3.2:
Would remove:
/Users/jonnydunseath/Programming/audio-webui/venv/lib/python3.10/site-packages/hydra/*
/Users/jonnydunseath/Programming/audio-webui/venv/lib/python3.10/site-packages/hydra_core-1.3.2.dist-info/*
Proceed (Y/n)? y
Successfully uninstalled hydra-core-1.3.2
Found existing installation: omegaconf 2.3.0
Uninstalling omegaconf-2.3.0:
Would remove:
/Users/jonnydunseath/Programming/audio-webui/venv/lib/python3.10/site-packages/omegaconf-2.3.0.dist-info/*
/Users/jonnydunseath/Programming/audio-webui/venv/lib/python3.10/site-packages/omegaconf/*
/Users/jonnydunseath/Programming/audio-webui/venv/lib/python3.10/site-packages/pydevd_plugins/*
Proceed (Y/n)? y
Successfully uninstalled omegaconf-2.3.0
(venv) (base) jonnydunseath@Jonathans-MBP audio-webui % pip install hydra-core==1.0.7 omegaconf==2.0.6

Collecting hydra-core==1.0.7
Using cached hydra_core-1.0.7-py3-none-any.whl (123 kB)
Collecting omegaconf==2.0.6
Using cached omegaconf-2.0.6-py3-none-any.whl (36 kB)
Collecting antlr4-python3-runtime==4.8
Using cached antlr4-python3-runtime-4.8.tar.gz (112 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: PyYAML>=5.1.* in ./venv/lib/python3.10/site-packages (from omegaconf==2.0.6) (6.0.2rc1)
Requirement already satisfied: typing-extensions in ./venv/lib/python3.10/site-packages (from omegaconf==2.0.6) (4.12.2)
Building wheels for collected packages: antlr4-python3-runtime
Building wheel for antlr4-python3-runtime (setup.py) ... done
Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.8-py3-none-any.whl size=141212 sha256=14409f3aa61229c804e92ac2ba6a1144acd73aba1d6cf1dd32161b061fe5e46d
Stored in directory: /Users/jonnydunseath/Library/Caches/pip/wheels/a7/20/bd/e1477d664f22d99989fd28ee1a43d6633dddb5cb9e801350d5
Successfully built antlr4-python3-runtime
Installing collected packages: antlr4-python3-runtime, omegaconf, hydra-core
Attempting uninstall: antlr4-python3-runtime
Found existing installation: antlr4-python3-runtime 4.9.3
Uninstalling antlr4-python3-runtime-4.9.3:
Successfully uninstalled antlr4-python3-runtime-4.9.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
audiocraft 1.3.0 requires hydra-core>=1.1, but you have hydra-core 1.0.7 which is incompatible.
Successfully installed antlr4-python3-runtime-4.8 hydra-core-1.0.7 omegaconf-2.0.6
WARNING: There was an error checking the latest version of pip.
(venv) (base) jonnydunseath@Jonathans-MBP audio-webui % pip uninstall hydra-core
Found existing installation: hydra-core 1.0.7
Uninstalling hydra-core-1.0.7:
Would remove:
/Users/jonnydunseath/Programming/audio-webui/venv/lib/python3.10/site-packages/hydra/*
/Users/jonnydunseath/Programming/audio-webui/venv/lib/python3.10/site-packages/hydra_core-1.0.7.dist-info/*
Proceed (Y/n)? y
Successfully uninstalled hydra-core-1.0.7
(venv) (base) jonnydunseath@Jonathans-MBP audio-webui % pip install hydra-core==1.1
Collecting hydra-core==1.1
Downloading hydra_core-1.1.0-py3-none-any.whl (144 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 144.6/144.6 kB 5.2 MB/s eta 0:00:00
Requirement already satisfied: antlr4-python3-runtime==4.8 in ./venv/lib/python3.10/site-packages (from hydra-core==1.1) (4.8)
Collecting omegaconf==2.1.*
Downloading omegaconf-2.1.2-py3-none-any.whl (74 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.7/74.7 kB 6.9 MB/s eta 0:00:00
Requirement already satisfied: PyYAML>=5.1.0 in ./venv/lib/python3.10/site-packages (from omegaconf==2.1.*->hydra-core==1.1) (6.0.2rc1)
Installing collected packages: omegaconf, hydra-core
Attempting uninstall: omegaconf
Found existing installation: omegaconf 2.0.6
Uninstalling omegaconf-2.0.6:
Successfully uninstalled omegaconf-2.0.6
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fairseq 0.12.2 requires hydra-core<1.1,>=1.0.7, but you have hydra-core 1.1.0 which is incompatible.
fairseq 0.12.2 requires omegaconf<2.1, but you have omegaconf 2.1.2 which is incompatible.
Successfully installed hydra-core-1.1.0 omegaconf-2.1.2
WARNING: There was an error checking the latest version of pip.
(venv) (base) jonnydunseath@Jonathans-MBP audio-webui %

Sorry if this is my stupidity, but can anyone please help?

Also this is what chat GPT said in case it's of any use :

The error indicates that fairseq 0.12.2 is incompatible with hydra-core 1.1.0 and omegaconf 2.1.2. To resolve this, you need to install the exact versions of hydra-core and omegaconf that fairseq 0.12.2 requires:

Deactivate Any Current Virtual Environment (if active):
bash
Copy code
deactivate
Create a Fresh Virtual Environment:
bash
Copy code
python -m venv fairseq_env
source fairseq_env/bin/activate
Install Required Packages for fairseq:
bash
Copy code
pip install fairseq==0.12.2
pip install hydra-core==1.0.7 omegaconf==2.0.6
Check Installed Versions:
bash
Copy code
pip list
If you see warnings about version conflicts, but the packages are installed successfully, fairseq should still work as expected with the specified versions. However, if there are still issues, you may need to manually adjust the versions to meet the compatibility requirements.

If You Also Need audiocraft, Use a Separate Virtual Environment:
bash
Copy code
python -m venv audiocraft_env
source audiocraft_env/bin/activate
pip install audiocraft==1.3.0
pip install hydra-core>=1.1
By maintaining separate environments, you ensure that dependencies do not conflict with each other.

@Beatwrecka Beatwrecka added the bug Something isn't working label Aug 6, 2024
@vuhuy
Copy link

vuhuy commented Sep 18, 2024

Workaround is to upgrade Pip, e.g. python -m pip install pip==24.0.

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