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

Failed to build fairseq #142

Closed
dhstsw opened this issue Mar 26, 2023 · 6 comments · Fixed by #385
Closed

Failed to build fairseq #142

dhstsw opened this issue Mar 26, 2023 · 6 comments · Fixed by #385

Comments

@dhstsw
Copy link

dhstsw commented Mar 26, 2023

Describe the bug
When processing:
venv\Scripts\pip.exe install so-vits-svc-fork
Installer exits, first with 2 warnings and then with a file not found error:

"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IJ:\SoftVC VITS\venv\include" -IC:\Users\dhs\AppData\Local\Programs\Python\Python310\include -IC:\Users\dhs\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /EHsc /Tpfairseq/clib/libbleu/libbleu.cpp /Fobuild\temp.win-amd64-cpython-310\Release\fairseq/clib/libbleu/libbleu.obj -std=c++11 -O3
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-std=c++11' verr… ignorata
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-O3' verr… ignorata
libbleu.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include\yvals.h(17): fatal error C1083: Non Š possibile aprire il file inclusione: 'crtdbg.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fairseq
Failed to build fairseq
ERROR: Could not build wheels for fairseq, which is required to install pyproject.toml-based projects

image
To Reproduce
run install.bat

Additional context
-Fresh Python 3.10.10 install
-Fresh Visual Studio Install
-Contents of "cudnn-windows-x86_64-8.8.1.3_cuda11-archive.zip" copied inside C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\

Same result with anaconda (skipping the Python check in the bat).
Already tried to unsinstall and reinstall visual studio multiple times.

Spent the whole day trying, no success.
Any hints?

Thanks.

Edit: seems that vs_BuildTools isn't able to install any windows (10 or 11) SDK, no idea why. :(

@dhstsw dhstsw added the bug Something isn't working label Mar 26, 2023
@34j
Copy link
Collaborator

34j commented Mar 27, 2023

Maybe #111 will help

@dhstsw
Copy link
Author

dhstsw commented Mar 27, 2023

Sadly not: it really doesn't want install any Win SDK.
I guess this is a visual studio errors, i could be closed.
Just asking if anyone can save me more pain and make avaiable the compiled fies for Cuda (if possible).
Thanks.

@voicepaw voicepaw deleted a comment from 2blackbar Mar 30, 2023
@34j 34j changed the title Windows 11 (bat install) error Failed to build fairseq Apr 1, 2023
@34j 34j removed the bug Something isn't working label Apr 1, 2023
@magicianjarden
Copy link

magicianjarden commented Apr 6, 2023

I am also getting the same error, unsolved. Tried to restart and reinstalling the SDK.

Found #224

it seemed to have fix my issue.

@34j
Copy link
Collaborator

34j commented Apr 7, 2023

It seems that using transformers eliminates the need to install fairseq (needs code change)

@MaximeHoude
Copy link

It seems that using transformers eliminates the need to install fairseq (needs code change)

I'm using the latest repo, manually installing using venv. I do also Failed to build fairseq. How I'm I supposed to be using transformers while pip install -U so-vits-svc-fork.
Many thanks!

@woshitff
Copy link

I also got the same error, and how to replace fairseq with transformers?

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

Successfully merging a pull request may close this issue.

5 participants