Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

both infer-web.py and go-web.bat do not work, fix described inside

Open akabez opened this issue 1 year ago • 0 comments

when running the go-web.bat i get the follwong error:

D:\RVC\Retrieval-based-Voice-Conversion-WebUI>runtime\python.exe infer-web.py --pycmd runtime\python.exe --port 7897
The system cannot find the path specified.

D:\RVC\Retrieval-based-Voice-Conversion-WebUI>pause
Press any key to continue . . .

No big deal, as I can use the python infer-web.py in the command prompt but even that won't work, I get:

D:\RVC\Retrieval-based-Voice-Conversion-WebUI>python infer-web.py
Traceback (most recent call last):
  File "D:\RVC\Retrieval-based-Voice-Conversion-WebUI\infer-web.py", line 8, in <module>
    from infer.modules.vc.modules import VC
  File "D:\RVC\Retrieval-based-Voice-Conversion-WebUI\infer\modules\vc\modules.py", line 7, in <module>
    import soundfile as sf
ModuleNotFoundError: No module named 'soundfile'

I installed everything properly and got no errors at all during install, from going over the issues here I found people with similar issues but that was almost a year ago and I am sure many changes have been pushed since then.

-EDIT- So, the original go-web.bat file is calling python.exe in runtime\python.exe but there is no such directory, the python.exe is actually inside env/scripts (naturally)

Inside the infer-web.py there is no python,exe mentioned at all.

changing the code inside go-web.bat to env\Scripts\python.exe infer-web.py --port 7897 fixed the issue and the webui now runs, but I can't be sure it will work without issues when actually doing training and the windows firewall blocked the webui when it opened which tbh is kind of odd and suspicious to me

Hope this helps

akabez avatar Jul 17 '24 22:07 akabez