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

Help me anyone? #2452

Open
YudhaDev opened this issue Jan 23, 2025 · 2 comments
Open

Help me anyone? #2452

YudhaDev opened this issue Jan 23, 2025 · 2 comments

Comments

@YudhaDev
Copy link

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fairseq
ERROR: Could not build wheels for fairseq, which is required to install pyproject.toml-based projects

@Xephier102
Copy link

Xephier102 commented Jan 24, 2025

I have also been running into this issue. So, I said screw it, gonna delete it all and specifically try with python 3.8. When translated via chatgpt, it says '3.8 or later' in the instructions, but I'm gonna take a magical guess that it means exactly 3.8 and nothing else. I tried 3.10.1, cuz that was the oldest I had installed on my system, but was getting this dependency error.

On the latest version of python, I was getting errors a lot sooner when attempting to run the req file, so that's why I figure, I'll try 3.8 and see if that doesn't solve it. Sometimes instructions will only work if followed specifically, to the letter. I'll alter this response here in a bit if this didn't work. So, if I don't come back, then just assume it did work, or I magically dropped dead, but preferably the former.

Edit: I don't know if it was specifically using 3.8 that solved the issue, but the program is running now. Though, I did two things different, so I'm not sure which did it or if it was both. I also altered a line of code to get past one roadblock that was getting in the way.

To summarize I..

pyenv install 3.8
pyenv local 3.8.20
python3.8 -m venv venv
source venv/bin/activate.fish  #(you can leave '.fish' out unless you're in Linux and using the fish shell in your konsole)
cd Retrieval-based-Voice-Conversion-WebUI

One more step here, the line of code. Now, this may be different for you, but for me, when trying to run the run.sh file at this point, I was still getting errors about not having python 3.8, or 'python3' or whatever. If you can ./run.sh at this point, then you can skip the code debugging. But, if you do get that error, then simply go to line 20 in the run.sh, and change grep -q "3.8" , to grep -q ">=3.8" save, then run the command..
./run.sh

If you're on windows, this may be tougher. I recommend in that case to ask chatgpt about running .sh files in windows. It can be done (apparently), but I never have.
When I did this, I installed the torchaudio and whatnot first (following the instructions posted in the readme). But that .sh file is magical, if you can get that running, it basically does everything for you, and then starts the program when it's done to boot.

Oh, I just had a quick chec, and the .sh even downloaded the model files, it's the ultimate easybutton. Reminds me of the first time I used a .sh when I was trying to get A1111 working several months back when I first got into using Linux. That's why I thought to use it. To clarify, you don't need to run requirements or install torch stuff if you get .sh goin. It does take a while though, so you may want to step aside for a coffee or something.

PS: bellow is just the first error I had, you can ignore that.

INFO: pip is looking at multiple versions of hydra-core to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 8) and fairseq because these package versions have conflicting dependencies.

The conflict is caused by:
    fairseq 0.12.2 depends on omegaconf<2.1
    hydra-core 1.0.7 depends on omegaconf<2.1 and >=2.0.5

@weaponmasterjax
Copy link

Downgrade pip to somewhere less that 24.0 and it will be fixed.

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

3 participants