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

113.74* Posted at: 9 hours ago 👁12

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 的翻译服务失败,因为该端口没有程序在监听。这通常发生在您选择了需要本地部署的翻译渠道(如 LibreTranslate、OTT 或自定义本地大模型),但对应的服务没有启动。

请按以下步骤排查:

  1. 检查当前使用的翻译渠道

    • 在主界面 第3行“翻译” 下拉菜单中,确认您选择的翻译渠道。
    • 如果选择的是 LibreTranslateOTT自定义翻译API,则需要您先在本地启动对应的服务
  2. 启动对应服务

    • LibreTranslate:您需要从 LibreTranslate GitHub 下载并运行其服务端,默认端口是 5000。启动后,需要在软件的“翻译设置”中正确配置其地址(如 http://127.0.0.1:5000)。
    • OTT (OpenAI-Translation-Tool):同样需要您本地部署 OTT 项目并启动服务。
    • 自定义翻译API:您需要确保您自己部署的翻译服务正在 127.0.0.1:9911 端口运行。
  3. 临时解决方案

    • 如果您只是想快速完成翻译,建议暂时切换到其他无需本地部署的在线翻译渠道,例如:

      • Google翻译(需要网络代理)
      • 微软翻译
      • DeepLX(本地但无需服务)
      • AI大模型(如 DeepSeek、Gemini,需要在“翻译设置”中配置API Key)
  4. 验证服务状态

    • 打开浏览器,访问 http://127.0.0.1:9911(或您配置的其他端口),看是否能打开服务页面。如果无法打开,说明服务未运行。

总结:错误 WinError 10061 直接原因是本地端口 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