#649 requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate

*219.194* Posted at: 9 hours ago 👁8

操作系统错误 (None): None:Traceback (most recent call last):

File "videotrans\translator\_base.py", line 79, 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\util\TestSrtTrans.py", line 17, in run

File "videotrans\translator\__init__.py", line 828, 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 68, 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

=====

Windows-10-10.0.27954-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于您选择的 DeepLX 翻译服务 无法正常连接导致的。错误代码 503 Service Unavailable 表明软件尝试访问的本地翻译服务(地址 http://127.0.0.1:1188/translate)没有启动或不可用。

核心原因与解决方案:

1. 您没有启动 DeepLX 服务: DeepLX 是一个需要您在本地自行部署的免费翻译服务。pyVideoTrans 本身不包含此服务,它只是调用您本地运行的 DeepLX 服务。

2. DeepLX 服务已崩溃或端口被占用: 服务可能已意外停止,或者端口 1188 被其他程序占用。

请按以下步骤解决:

第一步:启动 DeepLX 服务

  • 您需要先下载并运行 DeepLX 服务。请访问 DeepLX 的 GitHub 项目页面(例如 https://github.com/OwO-Network/DeepLX)下载适用于您 Windows 系统的版本。
  • 下载后,解压并运行其中的可执行文件(如 deeplx.exe)。成功启动后,命令行窗口会显示服务正在 127.0.0.1:1188 上运行。请保持这个窗口开启,不要关闭

第二步:在 pyVideoTrans 中重试

  • 确保 DeepLX 服务正在运行后,返回 pyVideoTrans 软件,再次尝试翻译任务。

备选方案:更换翻译渠道

  • 如果暂时无法解决 DeepLX 的问题,一个更简单快捷的方法是更换为其他可用的翻译服务。
  • 在软件的翻译设置中,将“翻译渠道”切换到如 Google翻译Microsoft翻译百度翻译 等不需要本地部署的服务,然后重试。

总结:

这个问题并非 pyVideoTrans 软件本身的错误,而是其依赖的第三方服务(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