#8115 Expecting value: line 1 column 1 (char 0)Traceback (most recent call last):

111.183**9 Posted at: 1 hour ago

Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 107, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 74, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_microsoft.py", line 42, in _item_task
File "requests\models.py", line 980, in json
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/xixisys.com/Videos/2026-10-14 16-32-48.mp4,
输出结果保存到文件夹: C:/Users/xixisys.com/Desktop/videos/2026-10-14 16-32-48-mp4,
临时文件夹: C:/Users/xixisys.com/Desktop/win-pyvideotrans-v4.11/tmp/35484/8358c84691
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Jenny(Female/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 嵌入硬字幕
代理地址:http://127.0.0.1:10808


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:zh
root_dir:C:/Users/xixisys.com/Desktop/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 1 hour ago

这是由于微软免费翻译接口在您的网络环境下返回了非 JSON 内容(如代理错误页、空响应或被限流),导致软件解析失败,抛出 JSONDecodeError。

解决方案:

  1. 请先检查您的代理地址 http://127.0.0.1:10808 是否确实可用。若实际不需要代理,请清空主界面代理文本框并保存,否则无效代理会导致所有网络请求异常。
  2. 微软免费翻译接口目前本身不稳定,建议更换翻译渠道:

    • 改用 Google(免费)(需要科学上网);
    • 或使用 DeepSeek(效果更好,需在 菜单->翻译设置->DeepSeek 中填写 API Key);
    • 或使用本地翻译模型 M2M100(内置)(完全离线,第一次使用需下载模型)。
  3. 如果坚持使用微软翻译,可尝试:

    • 在 高级选项->字幕翻译调整->翻译后暂停秒 中适当增大间隔(如 5-10 秒),减缓请求频率;
    • 重试任务,并勾选 清理已生成 以清除旧缓存。
  4. 您当前版本为 v4.11,微软翻译相关逻辑在 v4.09 已有修复,建议升级到最新版 v4.16 后再试。

请查阅相关文档:

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