#7615 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/19500/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

ModuleNotFoundError: No module named 'videotrans.recognition._openrouter' 这是 v4.13 打包时遗漏了部分模块文件导致的,属于已知的打包缺陷。

解决方案:

  1. 重新下载 v4.13 补丁包,覆盖到当前软件目录(D:/pyVideoTrans)。

  2. 确保补丁包内所有文件和文件夹都覆盖进去,尤其是 videotrans 文件夹和 _internal 文件夹,不能只覆盖 sp.exe。

  3. 若覆盖后仍报错,请在 _internal 文件夹内搜索 __pycache__,将搜索到的所有文件夹删除,再重新覆盖补丁包。

如果重新覆盖补丁包后问题依旧,请提供 logs/ 目录下最新的日志文件。

请查阅相关文档:

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