RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI
AttributeError: 'NoneType' object has no attribute 'tobytes'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 38.4k
- Forks
- 5.3k
- PR merge metrics
- No merged PRs in 30d
Description
Found GPU NVIDIA GeForce GTX 1650 Ti , force to fp32
Use Language: en_US
Running on local URL: http://0.0.0.0:7879
loading weights/arijit.pth
gin_channels: 256 self.spk_embed_dim: 109
Traceback (most recent call last):
File "C:\Users\HP\Downloads\AI\Retrieval-based-Voice-Conversion-WebUI\lib\audio.py", line 14, in load_audio
ffmpeg.input(file, threads=0)
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg_run.py", line 313, in run
process = run_async(
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg_run.py", line 284, in run_async
return subprocess.Popen(
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\HP\Downloads\AI\Retrieval-based-Voice-Conversion-WebUI\infer-web.py", line 188, in vc_single
audio = load_audio(input_audio_path, 16000)
File "C:\Users\HP\Downloads\AI\Retrieval-based-Voice-Conversion-WebUI\lib\audio.py", line 19, in load_audio
raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\gradio\blocks.py", line 1434, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\gradio\blocks.py", line 1341, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\gradio\components\audio.py", line 345, in postprocess
file_path = self.audio_to_temp_file(
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\site-packages\gradio\components\base.py", line 325, in audio_to_temp_file
temp_dir = Path(self.DEFAULT_TEMP_DIR) / self.hash_bytes(data.tobytes())
AttributeError: 'NoneType' object has no attribute 'tobytes'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/audio.py line 14 and infer-web.py line 188, then trace the Windows FileNotFoundError from the audio-loading call through the reported Gradio postprocessing error. Reproduce the failed audio conversion on the stated Windows setup and determine the expected behavior when loading fails; done means the reported failure path is handled without the NoneType traceback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100