#2163 TaskCfg(cache_folder=None, target_dir='C:/Users/admin/Desktop/视频 - 抽象日本 (2025-12-20_23-22-16)/(1) 视频 - 高市早苗和中亚五国首脑共进晚餐/_

112.224* Posted at: 2 hours ago 👁4

翻译字幕阶段出错:[DeepLx] 503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate:
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 78, in run
File "videotrans\translator\_base.py", line 97, 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\job.py", line 184, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 891, in run
File "videotrans\translator\_base.py", line 80, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deeplx.py", line 65, in _item_task
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate

TaskCfg(cache_folder=None, target_dir='C:/Users/admin/Desktop/视频 - 抽象日本 (2025-12-20_23-22-16)/(1) 视频 - 高市早苗和中亚五国首脑共进晚餐/_video_out/视频 - 高市早苗和中亚五国首脑共进晚餐', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code='JA', target_language_code='ZH-HANS', source_sub='C:/Users/admin/Desktop/视频 - 抽象日本 (2025-12-20_23-22-16)/(1) 视频 - 高市早苗和中亚五国首脑共进晚餐/_video_out/视频 - 高市早苗和中亚五国首脑共进晚餐/auto.srt', target_sub='C:/Users/admin/Desktop/视频 - 抽象日本 (2025-12-20_23-22-16)/(1) 视频 - 高市早苗和中亚五国首脑共进晚餐/_video_out/视频 - 高市早苗和中亚五国首脑共进晚餐/auto.ZH-HANS.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='auto', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=17, tts_type=None, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='C:/Users/admin/Desktop/视频 - 抽象日本 (2025-12-20_23-22-16)/(1) 视频 - 高市早苗和中亚五国首脑共进晚餐/_video_out/视频 - 高市早苗和中亚五国首脑共进晚餐/auto.srt', basename='auto.srt', ext='srt', dirname='C:/Users/admin/Desktop/视频 - 抽象日本 (2025-12-20_23-22-16)/(1) 视频 - 高市早苗和中亚五国首脑共进晚餐/_video_out/视频 - 高市早苗和中亚五国首脑共进晚餐', shound_del_name=None, uuid='09a7c72820', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0)


=
system:Windows-10-10.0.19045-SP0
version:v3.85
frozen:True
language:zh
root_dir:D:/videotrans/pyvideotrans385

1 Replies

翻译阶段出错是因为 DeepLX 本地服务 (http://127.0.0.1:1188) 无法连接,返回了 503 错误。这通常意味着 DeepLX 服务未启动、已崩溃或被防火墙阻止。

请按以下步骤排查:

  1. 确认 DeepLX 服务状态

    • 检查您是否已正确安装并启动了 DeepLX 服务。DeepLX 是一个需要单独运行的本地程序。
    • 打开浏览器,访问 http://127.0.0.1:1188。如果无法访问,说明服务未运行。
  2. 启动/重启 DeepLX 服务

    • 找到您下载的 DeepLX 可执行文件(例如 deeplx.exe),双击运行它。通常会有一个命令行窗口打开并显示监听端口。
    • 确保它运行的端口是 1188(与错误日志中的地址一致)。
  3. 临时解决方案(更换翻译渠道)

    • 如果无法立即解决 DeepLX 问题,建议在主界面的“翻译”设置中,暂时切换到其他可用的翻译渠道,例如:

      • Google 翻译(需要配置网络代理)
      • 微软翻译
      • 如果您配置了 API Key,也可以使用 ChatGPT (OpenAI)DeepSeekGemini 等 AI 翻译。
  4. 检查防火墙/杀毒软件

    • 确保 Windows 防火墙或第三方杀毒软件没有阻止 DeepLX 程序(deeplx.exe)的网络连接。
  5. 查看 DeepLX 日志

    • 运行 DeepLX 的命令行窗口可能会显示具体的错误信息,请根据其提示进行排查。

如果以上步骤仍无法解决,请提供 DeepLX 服务运行时的日志信息。

Post Your Reply
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.

Donate: https://ko-fi.com/jianchang512

Trending Questions