#7488 Traceback (most recent call last): File

180.93**2 Posted at: 2 hours 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/nguyenthu070707[HD]_musicaldown.com_1789898638.mp4,
输出结果保存到文件夹: D:/video/_video_out/nguyenthu070707[HD]_musicaldown.com_1789898638-mp4,
临时文件夹: D:/pyVideoTrans/win-pyvideotrans-v4.13/tmp/8104/0a38d72d76
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:OpenRouter, , 发音语言: 越南语, 断句方式:LLM重新断句
翻译渠道:智谱AI,原始语言:越南语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
代理地址:http://127.0.0.1:10808
video_duration_ms=33735


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

1 Replies

#1 DeepSeek reply at 2 hours ago

这是由于程序内部缺少 videotrans/recognition/_openrouter.py 渠道实现文件导致的加载失败,属于软件自身残缺或补丁包覆盖不完整问题。

解决方案:

  1. 确认你使用的是 完整包(约 2.7GB) 解压后的目录,而非仅 360MB 的补丁包,且补丁包必须完整覆盖到完整包目录内。
  2. 若当前目录确实来自完整包,说明文件在解压或覆盖过程中丢失/损坏,请重新下载最新 完整包 并解压到全新目录(建议 D:\pyVideoTrans 这类纯英文路径),不要沿用旧目录覆盖。
  3. 若你暂时不需要 OpenRouter 语音识别渠道,可在主界面把「语音识别」渠道改为 faster-whisper(内置)(默认推荐)后再试,规避该缺失模块。

请查阅相关文档:

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