mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion.git
synced 2026-11-05 00:27:21 +00:00
[GH-ISSUE #7] FileNotFoundError: [Errno 2] No such file or directory: 'rvc/lib/uvr5_pack/lib_v5/modelparams/4band_v2.json' when using UVR.uvr_wrapper() #7
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
RVC-Project/Retrieval-based-Voice-Conversion#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wAIfu-DEV on GitHub (Jan 27, 2024).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion/issues/7
Hi, getting this error when using the UVR.uvr_wrapper() function:
Here is my code:
I made sure to look at the path, and the file does exist, so I'm thinking it might be an issue with the expected CWD since the path is relative.
For more info: I'm running python from a venv and using this command to run:
./Scripts/python.exe rvc_test.pyfrom theC:\Users\jeje9\Desktop\rvc_testdirectory where thervc_test.pyfile is@wAIfu-DEV commented on GitHub (Jan 27, 2024):
This indeed seems to be the cause of the crash. I took the liberty to add a print statement in the source code, right before the call to

open()And got the path:
C:\Users\jeje9\Desktop\rvc_test\rvc\lib\uvr5_pack\lib_v5\modelparams\4band_v2.jsonwhen the correct path should have been:C:\Users\jeje9\Desktop\rvc_test\lib\site-packages\rvc\lib\uvr5_pack\lib_v5\modelparams\4band_v2.json@wAIfu-DEV commented on GitHub (Jan 27, 2024):
Manually setting the CWD of the python script using
os.chdir()fixes the issue on my end.@Tps-F commented on GitHub (Feb 4, 2024):
Sorry it took me so long to notice.
I haven't tested it on windows yet, I'll fix it again.