#3497 ModuleNotFoundError: No module named 'gradio_client'

2001:ee0* Posted at: 14 hours ago 👁11

Traceback (most recent call last):
File "/Users/macmini/pyvideotrans/videotrans/mainwin/_main_win.py", line 340, in _set_default

from videotrans import tts

File "/Users/macmini/pyvideotrans/videotrans/tts/__init__.py", line 25, in

from videotrans.tts._f5tts import F5TTS

File "/Users/macmini/pyvideotrans/videotrans/tts/_f5tts.py", line 6, in

from gradio_client import Client, handle_file

ModuleNotFoundError: No module named 'gradio_client'


=
system:macOS-15.3.1-arm64-arm-64bit
version:v3.97
frozen:False
language:en
root_dir:/Users/macmini/pyvideotrans
Python: 3.9.6 (default, Apr 30 2025, 02:07:17)
[Clang 17.0.0 (clang-1700.0.13.5)]

1 Replies

The error is caused by a missing Python dependency: the gradio_client module is not installed.

Solution:

  1. Ensure you are in the pyVideoTrans project directory: cd /Users/macmini/pyvideotrans
  2. Install the missing dependency using uv (the recommended package manager for this project):

    uv sync

    This command will install all required dependencies as specified in the project's pyproject.toml file, including gradio_client.

Note: The project recommends using Python 3.10. You are currently using Python 3.9.6. While this may work, for best compatibility, consider upgrading your Python version to 3.10.

Please refer to the relevant documentation:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource