#3458 videotrans.configure._except.StopRetry: [WinError 10061] No connection could be made because the target machine actively

2402:800* Posted at: 1 day ago 👁15

[WinError 10061] No connection could be made because the target machine actively refused it:
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\connection.py", line 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [WinError 10061] No connection could be made because the target machine actively refused it

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

Traceback (most recent call last):
File "videotrans\tts\_f5tts.py", line 305, in _run
File "gradio_client\client.py", line 162, in init
File "gradio_client\client.py", line 933, in _get_config
File "httpx\_api.py", line 195, in get
File "httpx\_api.py", line 109, in request
File "httpx\_client.py", line 825, in request
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [WinError 10061] No connection could be made because the target machine actively refused it

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 358, in run
File "videotrans\tts\_base.py", line 136, in run
File "videotrans\tts\_f5tts.py", line 51, in _exec
File "videotrans\tts\_base.py", line 205, in _local_mul_thread
File "videotrans\tts\_f5tts.py", line 323, in _item_task
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\tts\_f5tts.py", line 311, in _run
videotrans.configure._except.StopRetry: [WinError 10061] No connection could be made because the target machine actively refused it


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:en
root_dir:H:/Công cụ YTB/win-pyvideotrans-v3.97-0303

1 Replies

This error indicates that pyVideoTrans cannot connect to the F5-TTS API service. The target machine (likely 127.0.0.1:7860) actively refused the connection.

Solution:

  1. Ensure the F5-TTS API service is running. You must have the official F5-TTS project or its integrated package downloaded and launched separately. The error means pyVideoTrans cannot find the service at the configured address.
  2. Verify the API address in pyVideoTrans. Go to the "Dubbing Channel" settings for F5-TTS and confirm the "API Address" is correct (e.g., http://127.0.0.1:7860). The default port is often 7860, but check your F5-TTS service output for the exact address.
  3. Check for firewall/antivirus blocking. Temporarily disable your Windows firewall or antivirus software to see if they are blocking the local connection between pyVideoTrans and the F5-TTS service.
  4. Restart the F5-TTS service. Sometimes the service may have crashed or failed to start properly. Close its terminal/command window and restart it according to its documentation.
  5. Consult the F5-TTS setup guide. Ensure you have deployed and started the F5-TTS API correctly. The service must be running before you attempt to use it in pyVideoTrans.

Please refer to the relevant documentation:

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.

Related resource