#6963 Connection refused, please ensure the local service is started and runningTraceback (most recent call last):

2a0c**872e Posted at: 4 hours ago

Connection refused, please ensure the local service is started and running
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 493, in _make_request
File "urllib3\connection.py", line 494, in request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "urllib3\connection.py", line 325, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exc
......
line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 68, in run
File "videotrans\translator\_base.py", line 107, 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 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deeplx.py", line 55, in _item_task
File "requests\api.py", line 115, in post
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=1188): Max retries exceeded with url: /translate (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión'))

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/DerW/Videos/DOBLAJE_DIARIZACION/win-pyvideotrans-v4.09-0816/f5-tts/zh_male_bj.wav,
输出结果保存到文件夹: C:/Users/DerW/Desktop/zh_male_bj-wav,
临时文件夹: C:/Users/DerW/Videos/DOBLAJE_DIARIZACION/win-pyvideotrans-v4.09-0816/tmp/7908/4746ee4511
已选 清理已存在
未启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), tiny, 发音语言: Simplified Chinese, 断句方式:默认断句
TranslateSrt:DeepLx,原始语言:Simplified Chinese,目标语言:Spanish, 已选 SendSRT
TTS Service:Edge-TTS (Free), 角色:Tomas(Male/AR), 配音语言:Spanish, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 未选 强制对齐字幕和声音
字幕: Soft Subtitles


=
system:Windows-10-10.0.19045-SP0
version:v4.09
frozen:True
language:en
root_dir:C:/Users/DerW/Videos/DOBLAJE_DIARIZACION/win-pyvideotrans-v4.09-0816

1 Replies

#1 DeepSeek reply at 4 hours ago

This error occurs because the DeepLX translation service is not running at 127.0.0.1:1188. DeepLX is a self-hosted translation service that must be deployed and started separately before pyVideoTrans can use it. The error ConnectionRefusedError: [WinError 10061] confirms the local server is not listening on that port.

To resolve this:

  1. Start your DeepLX service — Make sure your DeepLX instance is running and listening on port 1188 (or whatever port you configured). Open a terminal and run the DeepLX server binary/script, then verify it's active.
  2. Verify the API address in pyVideoTrans — Go to 菜单 (Menu) → 翻译设置 (Translation Settings) → DeepLX, and confirm the API address is correct. It must match the address/port where your DeepLX service is actually running. Remove 0.0.0.0 and use 127.0.0.1 if the service is on the same machine.
  3. If you don't want to deploy DeepLX, simply switch to another translation channel in the main interface:

    • Google (Free) — best free option, but requires a VPN in mainland China
    • Microsoft Translation — free and works in most regions
    • M2M100 (Built-in) — fully offline, downloads a local model on first use
    • DeepSeek — high-quality AI translation, requires an API key from platform.deepseek.com

Note: The DeepLX channel is listed under "self-deployment and customization" in the documentation. It is not an out-of-the-box service; you must set it up yourself before using it.

Please refer to the relevant documentation:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource