so-vits-svc-fork icon indicating copy to clipboard operation
so-vits-svc-fork copied to clipboard

How do I fix "KeyError: 'index' (trying to open GUI)?

Open KatieBelli opened this issue 1 year ago • 2 comments

I installed it manually and through the .bat file. After, it opened the GUI. When I want to open it with svcg-command, this appears:

C:\Users...>svcg [17:23:09] INFO [17:23:09] version: 3.11.0 gui.py:144 Traceback (most recent call last): File "C:\Users...\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users...\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Users...\AppData\Local\Programs\Python\Python39\Scripts\svcg.exe_main.py", line 7, in File "C:\Users...\AppData\Local\Programs\Python\Python39\lib\site-packages\so_vits_svc_fork\gui.py", line 554, in main update_devices() File "C:\Users...\AppData\Local\Programs\Python\Python39\lib\site-packages\so_vits_svc_fork\gui.py", line 512, in update_devices ) = get_devices() File "C:\Users...\AppData\Local\Programs\Python\Python39\lib\site-packages\so_vits_svc_fork\gui.py", line 125, in get_devices input_devices_indices = [d["index"] for d in devices if d["max_input_channels"] > 0] File "C:\Users...\AppData\Local\Programs\Python\Python39\lib\site-packages\so_vits_svc_fork\gui.py", line 125, in input_devices_indices = [d["index"] for d in devices if d["max_input_channels"] > 0] KeyError: 'index'

KatieBelli avatar Apr 26 '23 16:04 KatieBelli

I have the same error

kelseyjd avatar May 03 '23 21:05 kelseyjd

I debug the code and found that there is no key "index" in the corresponding dict. I changed the "index" directly to the "name" code and it can be run. So far, no problem has been found.

zsdfaker avatar May 10 '23 06:05 zsdfaker