#7616 Traceback (most recent call last): File

180.93**2 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 28, 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._openrouter'

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/video/tiktok-1790062882013.mp4,
输出结果保存到文件夹: D:/video/_video_out/tiktok-1790062882013-mp4,
临时文件夹: D:/pyVideoTrans/tmp/6416/570e277c9d
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:OpenRouter, , 发音语言: 越南语, 断句方式:默认断句
翻译渠道:OpenRouter,原始语言:越南语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:10808
video_duration_ms=15770


=
system:Windows-10-10.0.22631-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 v4.13 预打包版的一个打包文件遗漏 Bug,与你的操作无关。

具体表现为:你使用了 OpenRouter 作为语音识别渠道,但软件包内缺少对应的模块文件 videotrans/recognition/_openrouter.py,导致加载时报 ModuleNotFoundError。

解决方案

  1. 重新下载 v4.13 补丁包,完整覆盖到现有软件目录(不要只覆盖 sp.exe,需覆盖所有文件和文件夹,尤其是 videotrans 文件夹)。

  2. 若覆盖后仍报错,可进一步排查缓存:在旧版本目录的 _internal 文件夹内搜索 __pycache__,删除搜索到的全部内容,再重新覆盖补丁包。

  3. 若问题依旧,可临时规避:将语音识别渠道从 OpenRouter 改为内置渠道(如 faster-whisper(内置)),因为该 Bug 仅出现在 OpenRouter 识别模块上。

同类报错还有 No module named 'videotrans.recognition._minimaxi'、'..._siliconflow' 等,均属同一次打包遗漏问题,处理方式相同。

请查阅相关文档:

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