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

ModuleNotFoundError: No module named 'infer.modules'

Open Lukww opened this issue 1 year ago • 2 comments

Does anyone know how to fix this? I just installed with all of the pretrained models so I'm not sure what's happening.

image

If anyone could help please tell me

Lukww avatar Mar 31 '24 12:03 Lukww

I'm not sure why the dependencies with repo just hate to load. Like, the pathing is correct and _____?

Anyway.

Opening up infer-web.py and slapping something like:

sys.path.insert(2, '................/RVC-nvidia/assets/weights') sys.path.insert(3, '............/RVC-nvidia/configs') sys.path.insert(1, /.........../RVC-nvidia/venv/lib/python3.10/site-packages') sys.path.insert(4, '/............../RVC-nvidia//tools/infer/lib/infer_pack/modules') sys.path.append('/............./RVC-nvidia/tools/infer/lib/infer_pack/modules')

into it for whatever won't load may fix it. sys.path.append() will likely work but if it doesn't then you can' slap the path.insert on there to make sure it loads whatever problematic little fucker isn't loading first.

so in your case try adding: sys.path.append("D:\Restrieval-based-Voice-Conversion-WebUI-main\Retrieval-based-Voice-Conversion-WebUI-main") to the top of your infer-web.py file near where all the import statements are.

kronkinatorix avatar Apr 06 '24 04:04 kronkinatorix

I'm not sure if me adding that caused the error to change or if it was something else I did but i've started getting this error instead.

image

Hopefully its easier to fix

Lukww avatar Apr 07 '24 13:04 Lukww

This issue was closed because it has been inactive for 15 days since being marked as stale.

github-actions[bot] avatar May 23 '24 04:05 github-actions[bot]