#3515 ModuleNotFoundError: No module named 'qwen_tts'

111.55* Posted at: 4 hours ago 👁9

:
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/Users/yangyi/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker

r = call_item.fn(*call_item.args, **call_item.kwargs)

File "/Users/yangyi/pyvideotrans/videotrans/process/tts_fun.py", line 34, in qwen3tts_fun

from qwen_tts import Qwen3TTSModel

ModuleNotFoundError: No module named 'qwen_tts'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/yangyi/pyvideotrans/videotrans/util/ListenVoice.py", line 16, in run

tts.run(

File "/Users/yangyi/pyvideotrans/videotrans/tts/__init__.py", line 346, in run

QwenttsLocal(**kwargs).run()

File "/Users/yangyi/pyvideotrans/videotrans/tts/_base.py", line 136, in run

self._exec()

File "/Users/yangyi/pyvideotrans/videotrans/tts/_qwenttslocal.py", line 53, in _exec

self._new_process(callback=qwen3tts_fun,title=title,is_cuda=self.is_cuda,kwargs=kwargs)

File "/Users/yangyi/pyvideotrans/videotrans/configure/_base.py", line 284, in _new_process

_rs = future.result()

File "/Users/yangyi/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/concurrent/futures/_base.py", line 458, in result

return self.__get_result()

File "/Users/yangyi/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result

raise self._exception

ModuleNotFoundError: No module named 'qwen_tts'


=
system:macOS-26.1-arm64-arm-64bit
version:v3.97
frozen:False
language:en
root_dir:/Users/yangyi/pyvideotrans
Python: 3.10.19 (main, Nov 19 2025, 22:41:43) [Clang 21.1.4 ]

3 Replies

This error occurs because the required qwen_tts Python module is not installed in your environment. You are using the source code version on macOS, and the Qwen-TTS (local) voice synthesis channel depends on this external package.

Solution:

  1. Install the qwen_tts package. Open a terminal, navigate to your pyVideoTrans project directory (/Users/yangyi/pyvideotrans), and run the installation command. Since you are using uv, the command is:

    uv add qwen-tts

    Or, if you prefer using pip within the uv environment:

    uv run pip install qwen-tts
  2. Restart the pyVideoTrans software. After the installation is complete, close and restart sp.py for the changes to take effect.
  3. Verify the installation (optional). You can check if the package was installed correctly by running:

    uv run python -c "import qwen_tts; print('Module found')"

Note: The Qwen-TTS (local) channel requires local model files. After installing the package, the first time you use it, the software will attempt to download the model. Ensure you have a stable network connection or configure a network proxy if needed.

Please refer to the relevant documentation:

qwen_tts

The error ModuleNotFoundError: No module named 'qwen_tts' indicates that the Python package required for the Qwen-TTS (local) voice synthesis channel is not installed in your environment.

Solution:

  1. Install the package. Open a terminal, navigate to your pyVideoTrans project directory (/Users/yangyi/pyvideotrans), and run the installation command. Since you are using uv, the command is:

    uv add qwen-tts

    Or, if you prefer using pip within the uv environment:

    uv run pip install qwen-tts
  2. Restart the software. After the installation is complete, close and restart sp.py for the changes to take effect.
  3. Verify the installation (optional). You can check if the package was installed correctly by running:

    uv run python -c "import qwen_tts; print('Module found')"

Note: The Qwen-TTS (local) channel requires local model files. After installing the package, the first time you use it, the software will attempt to download the model. Ensure you have a stable network connection or configure a network proxy if needed.

请查阅相关文档:

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