[GH-ISSUE #2737] "Cannot import name 'media_data' from 'gradio_client'" and "TypeError: Blocks.queue() got an unexpected keyword argument 'concurrency_count'" #1965

Closed
opened 2026-10-20 10:13:32 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @runningcat24 on GitHub (Dec 24, 2025).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2737

I'm using Linux Mint 22. I'm using a venv in Python 3.10. I tried the installation instructions and it has all gone well except for trying to launch using python infer-web.py, where I'm getting:

(venv) PC:~/Retrieval-based-Voice-Conversion-WebUI$ python infer-web.py
2025-12-24 14:01:59 | INFO | configs.config | Found GPU NVIDIA GeForce GTX 1650, force to fp32
2025-12-24 14:01:59 | INFO | configs.config | overwrite v1/32k.json
2025-12-24 14:01:59 | INFO | configs.config | overwrite v1/40k.json
2025-12-24 14:01:59 | INFO | configs.config | overwrite v1/48k.json
2025-12-24 14:01:59 | INFO | configs.config | overwrite v2/48k.json
2025-12-24 14:01:59 | INFO | configs.config | overwrite v2/32k.json
2025-12-24 14:01:59 | INFO | configs.config | overwrite preprocess_per to 3
2025-12-24 14:01:59 | INFO | configs.config | Half-precision floating-point: False, device: cuda:0
Traceback (most recent call last):
File "/home/username/Retrieval-based-Voice-Conversion-WebUI/infer-web.py", line 21, in
import gradio as gr
File "/home/username/Retrieval-based-Voice-Conversion-WebUI/venv/lib/python3.10/site-packages/gradio/init.py", line 3, in
import gradio.components as components
File "/home/username/Retrieval-based-Voice-Conversion-WebUI/venv/lib/python3.10/site-packages/gradio/components.py", line 34, in
from gradio_client import media_data
ImportError: cannot import name 'media_data' from 'gradio_client' (/home/username/Retrieval-based-Voice-Conversion-WebUI/venv/lib/python3.10/site-packages/gradio_client/init.py)

Some people in other threads have said something about the possibility of not having right versions of dependencies, but I had no trouble with the pip installs. I don't know how to check the version of my dependencies. I know very little about coding and I'm just trying to get RVC to work on my Linux computer like it did on Windows. I literally only created this account because I couldn't find anything else about this error. Any help please?

UPDATE: I figured out "Gradio" is a program that RVC presumably needs, so I entered the venv and ran pip install --upgrade gradio as per the installation/update instructions on the gradio github page. Now when I run 'python infer-web.py' it progresses further, but I've hit another problem:

(venv) PC:~/Retrieval-based-Voice-Conversion-WebUI$ python infer-web.py
2025-12-25 18:25:37 | INFO | configs.config | Found GPU NVIDIA GeForce GTX 1650, force to fp32
2025-12-25 18:25:37 | INFO | configs.config | overwrite v1/32k.json
2025-12-25 18:25:37 | INFO | configs.config | overwrite v1/40k.json
2025-12-25 18:25:37 | INFO | configs.config | overwrite v1/48k.json
2025-12-25 18:25:37 | INFO | configs.config | overwrite v2/48k.json
2025-12-25 18:25:37 | INFO | configs.config | overwrite v2/32k.json
2025-12-25 18:25:37 | INFO | configs.config | overwrite preprocess_per to 3
2025-12-25 18:25:37 | INFO | configs.config | Half-precision floating-point: False, device: cuda:0
2025-12-25 18:25:39 | INFO | main | Use Language: en_US
Traceback (most recent call last):
File "/home/username/Retrieval-based-Voice-Conversion-WebUI/infer-web.py", line 1614, in
app.queue(concurrency_count=511, max_size=1022).launch(
TypeError: Blocks.queue() got an unexpected keyword argument 'concurrency_count'

I can't find where exactly it's finding this keyword argument. So I don't know how to fix it. Help?

Originally created by @runningcat24 on GitHub (Dec 24, 2025). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2737 I'm using Linux Mint 22. I'm using a venv in Python 3.10. I tried the installation instructions and it has all gone well except for trying to launch using `python infer-web.py`, where I'm getting: > (venv) PC:~/Retrieval-based-Voice-Conversion-WebUI$ python infer-web.py 2025-12-24 14:01:59 | INFO | configs.config | Found GPU NVIDIA GeForce GTX 1650, force to fp32 2025-12-24 14:01:59 | INFO | configs.config | overwrite v1/32k.json 2025-12-24 14:01:59 | INFO | configs.config | overwrite v1/40k.json 2025-12-24 14:01:59 | INFO | configs.config | overwrite v1/48k.json 2025-12-24 14:01:59 | INFO | configs.config | overwrite v2/48k.json 2025-12-24 14:01:59 | INFO | configs.config | overwrite v2/32k.json 2025-12-24 14:01:59 | INFO | configs.config | overwrite preprocess_per to 3 2025-12-24 14:01:59 | INFO | configs.config | Half-precision floating-point: False, device: cuda:0 Traceback (most recent call last): File "/home/username/Retrieval-based-Voice-Conversion-WebUI/infer-web.py", line 21, in <module> import gradio as gr File "/home/username/Retrieval-based-Voice-Conversion-WebUI/venv/lib/python3.10/site-packages/gradio/__init__.py", line 3, in <module> import gradio.components as components File "/home/username/Retrieval-based-Voice-Conversion-WebUI/venv/lib/python3.10/site-packages/gradio/components.py", line 34, in <module> from gradio_client import media_data ImportError: cannot import name 'media_data' from 'gradio_client' (/home/username/Retrieval-based-Voice-Conversion-WebUI/venv/lib/python3.10/site-packages/gradio_client/__init__.py) Some people in other threads have said something about the possibility of not having right versions of dependencies, but I had no trouble with the pip installs. I don't know how to check the version of my dependencies. I know very little about coding and I'm just trying to get RVC to work on my Linux computer like it did on Windows. I literally only created this account because I couldn't find anything else about this error. Any help please? UPDATE: I figured out "Gradio" is a program that RVC presumably needs, so I entered the venv and ran `pip install --upgrade gradio` as per the installation/update instructions on the gradio github page. Now when I run 'python infer-web.py' it progresses further, but I've hit another problem: > (venv) PC:~/Retrieval-based-Voice-Conversion-WebUI$ python infer-web.py 2025-12-25 18:25:37 | INFO | configs.config | Found GPU NVIDIA GeForce GTX 1650, force to fp32 2025-12-25 18:25:37 | INFO | configs.config | overwrite v1/32k.json 2025-12-25 18:25:37 | INFO | configs.config | overwrite v1/40k.json 2025-12-25 18:25:37 | INFO | configs.config | overwrite v1/48k.json 2025-12-25 18:25:37 | INFO | configs.config | overwrite v2/48k.json 2025-12-25 18:25:37 | INFO | configs.config | overwrite v2/32k.json 2025-12-25 18:25:37 | INFO | configs.config | overwrite preprocess_per to 3 2025-12-25 18:25:37 | INFO | configs.config | Half-precision floating-point: False, device: cuda:0 2025-12-25 18:25:39 | INFO | __main__ | Use Language: en_US Traceback (most recent call last): File "/home/username/Retrieval-based-Voice-Conversion-WebUI/infer-web.py", line 1614, in <module> app.queue(concurrency_count=511, max_size=1022).launch( TypeError: Blocks.queue() got an unexpected keyword argument 'concurrency_count' I can't find where exactly it's finding this keyword argument. So I don't know how to fix it. Help?
Author
Owner

@Cubakki commented on GitHub (Dec 28, 2025):

The requirements.txt of this project doesn‘t specify the version of gradio_client. I solved this problem by specifying the version of gradio_client as 0.2.10.

<!-- gh-comment-id:3694748484 --> @Cubakki commented on GitHub (Dec 28, 2025): The requirements.txt of this project doesn‘t specify the version of gradio_client. I solved this problem by specifying the version of gradio_client as 0.2.10.
Author
Owner

@runningcat24 commented on GitHub (Dec 28, 2025):

The requirements.txt of this project doesn‘t specify the version of gradio_client. I solved this problem by specifying the version of gradio_client as 0.2.10.

I solved the gradio issue by updating it, it's now version 3.34.0. But I'm still getting the Blocks.queue issue.

<!-- gh-comment-id:3694963302 --> @runningcat24 commented on GitHub (Dec 28, 2025): > The requirements.txt of this project doesn‘t specify the version of gradio_client. I solved this problem by specifying the version of gradio_client as 0.2.10. I solved the gradio issue by updating it, it's now version 3.34.0. But I'm still getting the Blocks.queue issue.
Author
Owner

@tujj99 commented on GitHub (Jan 16, 2026):

pip install gradio==3.48.0
GL

<!-- gh-comment-id:3758330496 --> @tujj99 commented on GitHub (Jan 16, 2026): pip install gradio==3.48.0 GL
Author
Owner

@runningcat24 commented on GitHub (Jan 17, 2026):

pip install gradio==3.48.0 GL

Thank you, this worked! Finally got the UI to open! I had another error upon trying to convert a file, but it was fixed by reinstalling Torch as version 2.5.1: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2419

Thanks so much!!

<!-- gh-comment-id:3762386153 --> @runningcat24 commented on GitHub (Jan 17, 2026): > pip install gradio==3.48.0 GL Thank you, this worked! Finally got the UI to open! I had another error upon trying to convert a file, but it was fixed by reinstalling Torch as version 2.5.1: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2419 Thanks so much!!
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#1965
No description provided.