#7547 [DEBUG] [新进程任务 结束:title='Model: large-v3'],耗时767.589882850647s[DEBUG] 开始移除每条字幕末尾标点[ERROR] 二次识别后重新断句失败,已恢复原样 'NoneType' o

52.7**2 Posted at: 2 hours ago

[DEBUG] [新进程任务 结束:title='Model: large-v3'],耗时767.589882850647s
[DEBUG] 开始移除每条字幕末尾标点
[ERROR] 二次识别后重新断句失败,已恢复原样 'NoneType' object is not iterable
Traceback (most recent call last):
File "videotrans\task\_base.py", line 101, in _llmpost
File "videotrans\translator\_runner.py", line 88, in get_model_transobj
File "", line 21, in init
File "videotrans\translator\_deepseek.py", line 17, in post_init
File "videotrans\translator\_openaicompat.py", line 33, in post_init
File "videotrans\translator\_base.py", line 200, in _set_context
TypeError: 'NoneType' object is not iterable

[DEBUG] self.ainame='deepseek',self.source_code='en',self.target_code='zh-cn',self.target_language_name='Simplified Chinese',self.aisendsrt=True
[DEBUG] 以SRT字幕块翻译,每次翻译 50 条字幕块,翻译后暂停0.0s
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:self.ainame='deepseek',kwa
......
re': 0.1, 'max_tokens': 393216},self.extra_body={'thinking': {'type': 'disabled'}}
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:self.ainame='deepseek',kwargs={'model': 'deepseek-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 393216},self.extra_body={'thinking': {'type': 'disabled'}}
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:self.ainame='deepseek',kwargs={'model': 'deepseek-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 393216},self.extra_body={'thinking': {'type': 'disabled'}}
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:self.ainame='deepseek',kwargs={'model': 'deepseek-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 393216},self.extra_body={'thinking': {'type': 'disabled'}}
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:self.ainame='deepseek',kwargs={'model': 'deepseek-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 393216},self.extra_body={'thinking': {'type': 'disabled'}}
[INFO] Starting call to 'videotrans.translator._openaicompat.OpenAICampat._item_task', this is the 1st time calling it.
[DEBUG] 字幕翻译:self.ainame='deepseek',kwargs={'model': 'deepseek-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 393216},self.extra_body={'thinking': {'type': 'disabled'}}
[DEBUG] 原始字幕行数:649, 翻译后行数:649
[DEBUG] 原始语言字幕和目标语言字幕行数一致,均为 source_len=649

[DEBUG] line_roles={}
[DEBUG] self.volume='+0%', self.rate='+10%', self.pitch='+0Hz'
[DEBUG] 当前使用配音渠道:Edge-TTS(免费)
[DEBUG] 本次EdgeTTS配音:重试延迟:5,出错将重试:6,并发:1, 代理:http://127.0.0.1:9862


=


=




???

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因有两个,均非致命,但需分别处理:

1. 二次识别后重新断句失败(已自动恢复,不影响继续)
报错 TypeError: 'NoneType' object is not iterable 发生在 LLM纠错阶段,DeepSeek 渠道初始化时 _set_context 未正确获取上下文数据。日志显示"已恢复原样",后续字幕翻译正常完成(649行→649行),因此该错误未导致任务失败。

2. Edge-TTS 配音失败(导致任务中断)
[68/649][193/649] 达到最大重试次数失败,原因是 Edge-TTS 并发请求触发微软限流,且当前填写了代理 http://127.0.0.1:9862,代理连接不稳定会加剧失败。

解决方案:

  1. 进入 菜单 → 工具/选项 → 高级选项 → 字幕配音调整

    • EdgeTTS配音渠道配音并发数 设为 1
    • EdgeTTS配音渠道失败重试次数 设为 6 以上
    • 配音后暂停秒 设为 5~10 秒,降低被限流概率
  2. 主界面 对齐控制(Alignment) 右侧的代理文本框,若不需要代理请清空;如确需代理,确认 http://127.0.0.1:9862 服务已启动且端口正确。
  3. 若代理反复出问题,可在软件根目录创建空文件 edgetts-noproxy.txt,强制 EdgeTTS 绕过代理。
  4. 重试时勾选主界面的 清理已生成,避免复用失败缓存。

请查阅相关文档:

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