#2192 HTTPConnectionPool(host='127.0.0.1', port=9911): Max retries exceeded with url: /translate (Caused by NewConnectionError

113.74* Posted at: 9 hours ago 👁10

HTTPConnectionPool(host='127.0.0.1', port=9911): Max retries exceeded with url: /translate (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


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

1 Replies

这个错误表明软件尝试连接本地端口 127.0.0.1:9911 的翻译服务失败,因为该端口上没有服务在运行。这通常发生在您选择了需要本地部署的翻译渠道(如 LibreTranslateOTT自定义本地LLM),但对应的服务并未启动。

请按以下步骤排查:

  1. 检查翻译渠道设置:

    • 打开软件主界面,查看 第3行“翻译设置” 中您选择的翻译渠道。
    • 如果选择的是 LibreTranslateOTT自定义翻译API/本地LLM,并且其服务器地址设置为 http://127.0.0.1:9911,那么您需要先确保对应的翻译服务已经在本机启动并监听该端口。
  2. 解决方案(根据您选择的渠道操作):

    • 如果您想使用在线翻译(如Google、DeepSeek等):

      • 直接在“翻译设置”下拉菜单中切换到一个在线API渠道(例如Google、微软、DeepSeek、ChatGPT等)。
      • 如果选择的是需要API Key的渠道(如DeepSeek),请确保在 菜单 -> 设置 -> 翻译设置 中填写了正确的API Key。
    • 如果您确实需要使用本地翻译服务(如LibreTranslate):

      • 您需要先下载并部署 LibreTranslate 服务器。可参考官方指南进行安装和启动,确保其运行在 http://127.0.0.1:9911(或您指定的其他端口)。
      • 启动服务后,再在pyVideoTrans中尝试翻译。
  3. 临时验证:

    • 打开浏览器,访问 http://127.0.0.1:9911。如果页面无法打开或显示连接错误,则证实了服务未运行。

总结: 您当前选择的翻译渠道指向了一个未启动的本地服务。最简单的解决方法是切换到一个在线的、无需本地部署的翻译渠道

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

Similar issues already exist

Trending Questions