#8354 Connection refused, please ensure the local service is started and running:Traceback (most recent call last): File

94.139**0 Posted at: 2 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] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte

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.exception
......
recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: 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] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 117, 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] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte'))


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:en_US
root_dir:C:/Users/kimnh/Downloads/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 2 hours ago

The root cause is that you have selected the DeepLX translation channel, which requires a locally deployed DeepLX service running at http://127.0.0.1:1188/translate. The error WinError 10061 / Connection refused means nothing is listening on port 1188 — the DeepLX service is not started (or not running on that port).

You have two options:

Option A — Stop using DeepLX (recommended for most users)

  1. Go to Menu → Translation Settings and switch the translation channel away from DeepLX.
  2. For quality, select an AI channel such as DeepSeek / OpenAI ChatGPT / Gemini (fill in the API key first), or use the free Google(免费) / Microsoft(免费) channels.

Option B — Deploy DeepLX locally and keep using it

  1. Deploy the DeepLX project on your machine (default port 1188), and confirm the service is actually running.
  2. Verify it works by opening http://127.0.0.1:1188/translate in a browser or via a test request.
  3. Make sure the address configured in the software's DeepLX settings matches your running service (http://127.0.0.1:1188). Do not use 0.0.0.0 — replace it with 127.0.0.1.
  4. Local services normally bypass the proxy automatically, but if you have filled a proxy in the main interface, verify it is valid; an invalid proxy will cause all requests to fail.

Please refer to the related 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