mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-11-05 00:27:30 +00:00
[GH-ISSUE #1915] infer/lib/audio.py: audio2(): av.open(..., "rb"|"wb"): ValueError: mode must be 'r', 'w', or None, got: rb #1291
Labels
No labels
AMD/Intel
bug
bug
bug
colab
dependencies
documentation
duplicate
enhancement
following up
good first issue
help wanted
invalid
question
stale
stale
stale
todo list
wontfix
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-WebUI#1291
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 @dimgel on GitHub (Mar 23, 2024).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1915
Hi. Got error when trying "Model Inference" tab, had to patch subj to get it working:
It was just a guess. I don't know python, couldn't find API docs nor what "b" means. "Binary"? Ha, can it also process text files? :)
Also hit #1155 on first run, 1st comment there helped. Didn't try anything else yet.
ArtixLinux, python 3.11.8, ffmpeg 6.1.1 & 4.4.4, nvidia blob.
@WuYuZh17 commented on GitHub (Mar 23, 2024):
I meet that question too.In python,"rb"means you need to read a binary file.In function "open" it works,so I guess that's the question of av library.I want to solve that too:(
@dimgel commented on GitHub (Mar 23, 2024):
Then just remove "b" like I did -- and it will work.
@WuYuZh17 commented on GitHub (Mar 26, 2024):
thanks a lot,that works,but I meet the question"UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 25: illegal multibyte sequence",could you help me please:(
@dimgel commented on GitHub (Mar 30, 2024):
Sorry, not my area of expertise.
@JarrodElliott commented on GitHub (Apr 23, 2024):
@dimgel, @WuYuZh17: Looks like this commit makes it so you can't use 'rb' in the open anymore which was being used in the latest release here.
Try installing an older version - PyAV v11.0.0
pip install --force-reinstall -v "av==11.0.0"@admarsee commented on GitHub (Apr 23, 2024):
@JarrodElliott , downgrading av from 12 to 11 fixed the issue for me!
@RVC-Boss commented on GitHub (Jul 20, 2026):
You can update the code to the latest
mainbranch, where this issue has already been resolved.