#8136 Traceback (most recent call last): File

206.119**6 Posted at: 1 hour ago

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 70, in run
File "videotrans\task\_stage_recogn.py", line 63, in recogn
File "videotrans\recognition\__init__.py", line 117, in run
File "videotrans\__init__.py", line 29, in get_class
File "importlib\__init__.py", line 126, in import_module
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'videotrans.recognition._whisperxapi'

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: Z:/40.真千金竟是修仙大佬(55集)/第02集.mp4,
输出结果保存到文件夹: Z:/40.真千金竟是修仙大佬(55集)/_video_out/第02集-mp4,
临时文件夹: Z:/win-pyvideotrans-v4.14/tmp/76120/20caeb12d8
未选 清理已存在
已启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量不限制
语音识别:WhisperX(本地API), large-v3, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Index-TTS(本地API), 角色:clone, 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+10%, 未选 音频加速, 已选 视频慢速
字幕: 不嵌入字幕
video_duration_ms=103000


=
system:Windows-10-10.0.26100-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:Z:/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

该报错 ModuleNotFoundError: No module named 'videotrans.recognition._whisperxapi' 说明你当前使用的 v4.14 预打包版缺少 WhisperX 渠道的识别模块,属于安装/打包不完整,不是模型或服务器配置问题。

解决方法:

  1. 直接下载最新完整版并覆盖升级到 v4.16,不要只覆盖补丁包;补丁包可能不包含完整识别模块。
  2. 若暂时不想升级,可在语音识别渠道中把 WhisperX(本地API) 改为 faster-whisper(内置),模型选 large-v3 或 large-v3-turbo,即可继续视频翻译。
  3. 你当前视频路径含中文和全角括号(Z:/40.真千金竟是修仙大佬(55集)/第02集.mp4),建议改为纯英文数字路径(如 Z:/video/02.mp4),避免 ffmpeg 解析异常。
  4. 如果确实需要使用 WhisperX(本地API),请先自行部署好 WhisperX 服务,并在软件中正确填写本地 API 地址;同时必须使用完整的预打包版或源码部署。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource