daswer123 / xtts-webui

Webui for using XTTS and for finetuning it
MIT License
551 stars 109 forks source link

Installation of install.bat failed wheel error visual studio error? #96

Closed IVIaV closed 6 days ago

IVIaV commented 2 weeks ago

Hello, I have been despairing about this error for several days and have already tried various things. Unfortunately, I can't get any further and am frankly desperate...

When I run the install.bat, it keeps running until wheel is started. Then a strange error occurs. I have installed Visual studio build tools 2022, but it still can't seem to find the required data from this package. grafik

"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\ABC\VoiceAI\xtts-webui\venv\libs "/LIBPATH:C:\Program Files\Python310\libs" "/LIBPATH:C:\Program Files\Python310" /LIBPATH:C:\Users\ABC\VoiceAI\xtts-webui\venv\PCbuild\amd64 /EXPORT:PyInit_core build\temp.win-amd64-cpython-310\Release\TTS/tts/utils/monotonic_align/core.obj /OUT:build\lib.win-amd64-cpython-310\TTS\tts\utils\monotonic_align\core.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-310\Release\TTS/tts/utils/monotonic_align\core.cp310-win_amd64.lib
      LINK : fatal error LNK1104: Datei "MSVCRT.lib" kann nicht ge”ffnet werden.
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\link.exe' failed with exit code 1104
      [end of output]

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

I also have this problem when I download Fairseq and want to start it... It must be a bug with Visual Studio (or the path), otherwise I can't explain that I can't start a wheel instance, no matter which repository

Reinstalling, restarting, trying different versions... I've tried it all... but who knows, sometimes you overlook something totally obvious... So any tips are welcome.

System information -Win 10 -Python 3.10.11 (also tried with Python 3.12.6 and 3.9.6) -Pip 22.3.1 (also tried with Pip 23.0 and 24.2) -Visual Studio Build Tools 2022 17.11.3

IVIaV commented 6 days ago

As always, nobody has a clue or doesn't feel like dealing with it. In any case, I have now found a solution.

If the c++ libraries were installed via visual studio, you have to enter the paths for the individual folders in Windows yourself if you have the same error. Many thanks to windwos for building in such great features where nothing works. Great /s

My added paths in System Paths:

INCLUDE

C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\winrt
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\cppwinrt

LIB

C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\ucrt\x64
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\ucrt_enclave\x64
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64

add in PATH C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64

I hope I was able to relieve one or the other of weeks of work here... Please note that depending on the installation of the SDK (for me it was win 10, version 22621.0) the path may vary! You have to adapt it to your folders yourself!