[GH-ISSUE #968] Error in 2nd tab when loading song from C drive #626

Open
opened 2026-10-20 10:01:22 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @gnjnshh on GitHub (Aug 9, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/968

Billie Eilish Male Cover - What Was I Made For_c103d7q3.mp3.reformatted.wav->Traceback (most recent call last):
File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\librosa\core\audio.py", line 155, in load
context = sf.SoundFile(path)
File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\soundfile.py", line 655, in init
self._file = self._open(file, mode_int, closefd)
File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\soundfile.py", line 1213, in _open
raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name))
soundfile.LibsndfileError: Error opening 'D:\RVC-beta\RVC-beta0717\TEMP/Billie Eilish Male Cover - What Was I Made For_c103d7q3.mp3.reformatted.wav': System error.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\RVC-beta\RVC-beta0717\infer-web.py", line 374, in uvr
pre_fun.path_audio(
File "D:\RVC-beta\RVC-beta0717\infer_uvr5.py", line 64, in path_audio
) = librosa.core.load( # 理论上librosa读取可能对某些音频有bug,应该上ffmpeg读取,但是太麻烦了弃坑
File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\librosa\util\decorators.py", line 104, in inner_f
return f(**kwargs)
File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\librosa\core\audio.py", line 174, in load
y, sr_native = __audioread_load(path, offset, duration, dtype)
File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\librosa\core\audio.py", line 198, in _audioread_load
with audioread.audio_open(path) as input_file:
File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\audioread_init
.py", line 111, in audio_open
return BackendClass(path)
File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\audioread\rawread.py", line 62, in init
self._fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'D:\RVC-beta\RVC-beta0717\TEMP/Billie Eilish Male Cover - What Was I Made For_c103d7q3.mp3.reformatted.wav'

C:\Users\gnjns\AppData\Local\Temp\Billie: No such file or directory
clean_empty_cache

Got above error

Originally created by @gnjnshh on GitHub (Aug 9, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/968 Billie Eilish Male Cover - What Was I Made For_c103d7q3.mp3.reformatted.wav->Traceback (most recent call last): File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\librosa\core\audio.py", line 155, in load context = sf.SoundFile(path) File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\soundfile.py", line 655, in __init__ self._file = self._open(file, mode_int, closefd) File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\soundfile.py", line 1213, in _open raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening 'D:\\RVC-beta\\RVC-beta0717\\TEMP/Billie Eilish Male Cover - What Was I Made For_c103d7q3.mp3.reformatted.wav': System error. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\RVC-beta\RVC-beta0717\infer-web.py", line 374, in uvr pre_fun._path_audio_( File "D:\RVC-beta\RVC-beta0717\infer_uvr5.py", line 64, in _path_audio_ ) = librosa.core.load( # 理论上librosa读取可能对某些音频有bug,应该上ffmpeg读取,但是太麻烦了弃坑 File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\librosa\util\decorators.py", line 104, in inner_f return f(**kwargs) File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\librosa\core\audio.py", line 174, in load y, sr_native = __audioread_load(path, offset, duration, dtype) File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\librosa\core\audio.py", line 198, in __audioread_load with audioread.audio_open(path) as input_file: File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\audioread\__init__.py", line 111, in audio_open return BackendClass(path) File "D:\RVC-beta\RVC-beta0717\runtime\lib\site-packages\audioread\rawread.py", line 62, in __init__ self._fh = open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'D:\\RVC-beta\\RVC-beta0717\\TEMP/Billie Eilish Male Cover - What Was I Made For_c103d7q3.mp3.reformatted.wav' C:\Users\gnjns\AppData\Local\Temp\Billie: No such file or directory clean_empty_cache Got above error
Author
Owner

@RVC-Boss commented on GitHub (Aug 10, 2023):

Would you mind upload this audio so that I can help you check the issue?

<!-- gh-comment-id:1672492523 --> @RVC-Boss commented on GitHub (Aug 10, 2023): Would you mind upload this audio so that I can help you check the issue?
Author
Owner

@gnjnshh commented on GitHub (Aug 10, 2023):

https://rapidgator.net/file/b3fabd8407a99d883bc82494122b1ee9

Same error occurs with different audio files as well, but works sometimes! not sure what the issue is, does it require specific file type? thanks

<!-- gh-comment-id:1672519551 --> @gnjnshh commented on GitHub (Aug 10, 2023): https://rapidgator.net/file/b3fabd8407a99d883bc82494122b1ee9 Same error occurs with different audio files as well, but works sometimes! not sure what the issue is, does it require specific file type? thanks
Author
Owner

@RVC-Boss commented on GitHub (Aug 14, 2023):

https://rapidgator.net/file/b3fabd8407a99d883bc82494122b1ee9

Same error occurs with different audio files as well, but works sometimes! not sure what the issue is, does it require specific file type? thanks

@gnjnshh
Maybe you need a latest version. I use HP2 model and successfully get the result.

image
image

<!-- gh-comment-id:1676905971 --> @RVC-Boss commented on GitHub (Aug 14, 2023): > https://rapidgator.net/file/b3fabd8407a99d883bc82494122b1ee9 > > Same error occurs with different audio files as well, but works sometimes! not sure what the issue is, does it require specific file type? thanks @gnjnshh Maybe you need a latest version. I use HP2 model and successfully get the result. ![image](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/129054828/1d6156f1-c331-43f8-b5b0-1736781b186e) ![image](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/129054828/03af992d-86e5-48d7-8f33-8f6bc2d8209a)
Author
Owner

@ed-bonnet commented on GitHub (Aug 18, 2023):

I have the same issue on windows 11. Here is a workaround that worked for me:

  • copy the file into TEMP
  • add ".reformatted.wav".
    Then the file has been processed successfully.
<!-- gh-comment-id:1684270403 --> @ed-bonnet commented on GitHub (Aug 18, 2023): I have the same issue on windows 11. Here is a workaround that worked for me: - copy the file into TEMP - add ".reformatted.wav". Then the file has been processed successfully.
Author
Owner

@KittoHub commented on GitHub (Oct 13, 2023):

@gnjnshh

I had the same issue error I have been getting. I found the reason why its not working.

You have to make sure the input file name and input folder name does not have space. I put underscore between the space of the input mp3 file and folder and voila sucess.

Example:
Current file name: Billie Eilish Male Cover - What Was I Made For.mp3
Change file name to: Billie_Eilish_Male_Cover_What_Was_I_Made_For.mp3 (put a underscore or remove spaces)

Do the same with the main input folder if you have space, you have to just remove it or add underscore then it works. Hope this helps.

<!-- gh-comment-id:1761622557 --> @KittoHub commented on GitHub (Oct 13, 2023): @gnjnshh I had the same issue error I have been getting. I found the reason why its not working. You have to make sure the input file name and input folder name does not have space. I put underscore between the space of the input mp3 file and folder and voila sucess. Example: Current file name: Billie Eilish Male Cover - What Was I Made For.mp3 Change file name to: Billie_Eilish_Male_Cover_What_Was_I_Made_For.mp3 (put a underscore or remove spaces) Do the same with the main input folder if you have space, you have to just remove it or add underscore then it works. Hope this helps.
Author
Owner

@Frioo commented on GitHub (Feb 6, 2024):

Getting the same error. Seems like the path is not being constructed properly on Windows?
D:\RVC-beta\RVC-beta0717\TEMP/Billie Eilish Male Cover - What Was I Made For_c103d7q3.mp3.reformatted.wav':
After TEMP it uses a forward slash while the rest is backslashed. Experiencing the same output, with double backslashes and one forward slash at the end.

<!-- gh-comment-id:1930784713 --> @Frioo commented on GitHub (Feb 6, 2024): Getting the same error. Seems like the path is not being constructed properly on Windows? D:\RVC-beta\RVC-beta0717\TEMP/Billie Eilish Male Cover - What Was I Made For_c103d7q3.mp3.reformatted.wav': After TEMP it uses a forward slash while the rest is backslashed. Experiencing the same output, with double backslashes and one forward slash at the end.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#626
No description provided.