#2805 TaskCfg(cache_folder=None, target_dir='C:/B站/YouTube的音频/Nature 360 video — VR/deelpx', remove_noise=False, is_separate=F

2408:821a* Posted at: 5 days ago 👁19

翻译字幕阶段出错 [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 79, in run
File "videotrans\translator\_base.py", line 96, 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 906, in run
File "videotrans\translator\_base.py", line 81, 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:/B站/YouTube的音频/Nature 360 video — VR/deelpx', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code='EN-US', target_language_code='ZH-HANS', source_sub='C:/B站/YouTube的音频/Nature 360 video — VR/deelpx/10 - Kizhi. The wooden wonder of Russia. Virtual travel. Aerial 360 video in 12K..srt', target_sub='C:/B站/YouTube的音频/Nature 360 video — VR/deelpx/10 - Kizhi. The wooden wonder of Russia. Virtual travel. Aerial 360 video in 12K..ZH-HANS.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='10 - Kizhi. The wooden wonder of Russia. Virtual travel. Aerial 360 video in 12K.', 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:/B站/YouTube的音频/Nature 360 video — VR/deelpx/10 - Kizhi. The wooden wonder of Russia. Virtual travel. Aerial 360 video in 12K..srt', basename='10 - Kizhi. The wooden wonder of Russia. Virtual travel. Aerial 360 video in 12K..srt', ext='srt', dirname='C:/B站/YouTube的音频/Nature 360 video — VR/deelpx', shound_del_name=None, uuid='3a29fd88ca', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.22631-SP0
version:v3.92
frozen:True
language:zh
root_dir:C:/pyvideotrans

1 Replies

错误显示 DeepLx 翻译服务返回 503 错误,这通常意味着您本地部署的 DeepLx 服务未启动或已崩溃。

核心解决步骤:

  1. 检查并启动 DeepLx 服务:

    • 确认您已下载并解压了 DeepLx 的 Windows 可执行文件。
    • 双击运行 DeepLx.exedeeplx.exe(具体文件名取决于您下载的版本)。您应该能看到一个命令行窗口,显示服务正在运行(默认地址为 http://127.0.0.1:1188)。
  2. 在 pyVideoTrans 中配置代理(关键步骤):

    • 由于 DeepLx 是本地服务,不需要设置网络代理。
    • 在 pyVideoTrans 主界面第5行的“网络代理”输入框中,请清空所有内容,确保其为空。错误的代理设置(如 http://127.0.0.1:7860)会导致软件无法连接到本地的 127.0.0.1:1188
  3. 验证服务连通性:

    • 打开浏览器,访问 http://127.0.0.1:1188。如果服务正常,页面会显示一些欢迎信息或状态(例如 “DeepL Free API” 相关字样)。
    • 如果无法访问,请关闭 DeepLx 窗口并重新启动。如果问题依旧,请尝试更换 DeepLx 的版本或端口。
  4. 重新执行翻译任务:

    • 确保 DeepLx 服务运行且网络代理设置为空后,在 pyVideoTrans 中重新开始翻译任务。

备用方案:
如果 DeepLx 服务持续不稳定,您可以暂时切换到其他翻译渠道,例如 Google翻译(需要设置正确的网络代理)或 微软翻译

请查看更多参考文档:

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.

Related resource