#8526 Traceback (most recent call last): File

2405**214 Posted at: 3 hours ago

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 71, in run
File "videotrans\task\_stage_recogn.py", line 64, in recogn
File "videotrans\recognition\__init__.py", line 144, in run
File "videotrans\__init__.py", line 32, 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._xiaomi'

trk=[TransCreate]: uuid='d0d42813f0', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/RuanJian/AiQing/CeShiShiPin.mp4,
输出结果保存到文件夹: D:/RuanJian/AiQing/PyVideoTrans/CeShiShiPin-mp4,
临时文件夹: D:/RuanJian/AiQing/PyVideoTrans/win-pyvideotrans-v4.17-1027/tmp/29776/d0d42813f0
已选 清理已存在
未启用CUDA加速
语音识别:小米AI, mimo-v2.5-asr, 发音语言: 日语, ,
翻译渠道:小米AI,原始语言:日语,目标语言:简体中文, 已选 发送完整字幕, settings.get('trans_thread')=5, settings.get('aitrans_thread')=40
配音渠道:小米AI, 角色:冰糖, 配音语言:简体中文
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 不嵌入字幕
已选 仅输出mp4, precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=3622072


=
system:Windows-10-10.0.26300-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:D:/RuanJian/AiQing/PyVideoTrans/win-pyvideotrans-v4.17-1027

1 Replies

#1 DeepSeek reply at 3 hours ago

这是打包版缺少 videotrans/recognition/_xiaomi.py 模块文件导致的,通常由补丁包覆盖不完整(只替换了 sp.exe,未覆盖 videotrans 文件夹)或该版本打包遗漏引起。若覆盖旧版本时残留 __pycache__ 缓存,也会出现此类模块缺失。

解决方案

  1. 前往官网下载最新的完整包(约 2.6GB 以上)或最新补丁包:https://pyvideotrans.com/downpackage
  2. 解压后覆盖到软件目录时,务必覆盖 全部文件和文件夹(至少包含 sp.exe、_internal 文件夹、videotrans 文件夹),不要只替换 sp.exe。
  3. 覆盖后,在 _internal 文件夹内搜索 __pycache__,删除搜索到的所有 __pycache__ 文件夹与文件,然后重新启动 sp.exe。
  4. 若暂时不想重装,可先在主界面将「语音识别」渠道改为 faster-whisper(内置) + large-v3(或 large-v3-turbo),日语识别效果良好,可继续完成本次翻译任务。

补充:该报错与视频文件、配音、翻译渠道无关,仅影响语音识别阶段的渠道加载。

请查阅相关文档:

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