#4414 videotrans.configure._except.StopRetry: [Errno 61] Connection refused

2405:4802* Posted at: 3 hours ago 👁16

[Errno 61] Connection refused:
Traceback (most recent call last):
File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions

yield

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 250, in handle_request

resp = self._pool.handle_request(req)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request

raise exc from None

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request

response = connection.handle_request(

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpcore/_sync/connection.py", line 99, in handle_request

raise exc

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/li
......
205, in connect_tcp

with map_exceptions(exc_map):

File "/Users/nhu/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/contextlib.py", line 153, in exit

self.gen.throw(typ, value, traceback)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions

raise to_exc(exc) from exc

httpcore.ConnectError: [Errno 61] Connection refused

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

Traceback (most recent call last):
File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/tts/_omnivoice.py", line 94, in _item_task

client = Client(self.api_url, ssl_verify=False)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/gradio_client/client.py", line 163, in init

self.config = self._get_config()

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/gradio_client/client.py", line 936, in _get_config

r = httpx.get(

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_api.py", line 195, in get

return request(

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_api.py", line 109, in request

return client.request(

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_client.py", line 825, in request

return self.send(request, auth=auth, follow_redirects=follow_redirects)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_client.py", line 914, in send

response = self._send_handling_auth(

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_client.py", line 942, in _send_handling_auth

response = self._send_handling_redirects(

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_client.py", line 979, in _send_handling_redirects

response = self._send_single_request(request)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_client.py", line 1014, in _send_single_request

response = transport.handle_request(request)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 249, in handle_request

with map_httpcore_exceptions():

File "/Users/nhu/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/lib/python3.10/contextlib.py", line 153, in exit

self.gen.throw(typ, value, traceback)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/.venv/lib/python3.10/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions

raise mapped_exc(message) from exc

httpx.ConnectError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/util/ListenVoice.py", line 16, in run

tts.run(

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/tts/__init__.py", line 451, in run

OmniVoice(**kwargs).run()

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/tts/_base.py", line 137, in run

self._exec()

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/tts/_omnivoice.py", line 61, in _exec

self._local_mul_thread()

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/tts/_base.py", line 210, in _local_mul_thread

self._item_task(item,k)

File "/Users/nhu/Desktop/ProjectX/pyvideotrans/videotrans/tts/_omnivoice.py", line 96, in _item_task

raise StopRetry(str(e))

videotrans.configure._except.StopRetry: [Errno 61] Connection refused


=
system:macOS-26.4.1-arm64-arm-64bit
version:v3.99
frozen:False
language:en
root_dir:/Users/nhu/Desktop/ProjectX/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

Connection refused error means the OmniVoice TTS service is not running or not reachable at the configured address. The traceback shows pyVideoTrans cannot establish a connection to the OmniVoice API.

Solution:

  1. Ensure the OmniVoice TTS server is deployed and actively running. Open the terminal where the OmniVoice service is started and verify it's listening (usually on port 7860). If it's not running, start it according to the OmniVoice deployment guide.
  2. Check the API URL in pyVideoTrans: go to Menu -> TTS Settings -> F5‑TTS (OmniVoice shares this settings panel). The default address is http://127.0.0.1:7860. Make sure it matches the actual host and port where OmniVoice is serving.
  3. If the address is correct and the service is running but the error persists, check the OmniVoice console output for any startup errors (missing models, port conflicts, etc.) and address them.
  4. After fixing, restart pyVideoTrans and try again.

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