语音识别阶段出错:[faster-whisper(本地)] 连接被拒绝,目标服务可能未运行或端口错误:
Traceback (most recent call last):
File "videotrans\task\job.py", line 112, in run
File "videotrans\task\trans_create.py", line 327, in recogn
File "videotrans\recognition\__init__.py", line 222, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_overall.py", line 192, in _exec
RuntimeError: 从国内镜像站下载模型失败,若频繁失败,请考虑科学上网并在软件目录下创建 huggingface.lock 文件,以便从国外源站下载
更多下载方法查看 https://pvt9.com/819
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] 由于目标计算机积极拒绝,无法连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 773, in urlopen
File "urllib3\connectionpool.py", line 1042, in _prepare_proxy
File "urllib3\connection.py", line 753, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
The above exception was the direct cause of the following exception:
urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "requests\adapters.py", line 667, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /api/models/mobiuslabsgmbh/faster-whisper-large-v3-turbo/revision/main (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "faster_whisper\utils.py", line 107, in download_model
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\_snapshot_download.py", line 165, in snapshot_download
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\hf_api.py", line 2864, in repo_info
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\hf_api.py", line 2648, in model_info
File "requests\sessions.py", line 602, in get
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "huggingface_hub\utils\_http.py", line 95, in send
File "requests\adapters.py", line 694, in send
requests.exceptions.ProxyError: (MaxRetryError("HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /api/models/mobiuslabsgmbh/faster-whisper-large-v3-turbo/revision/main (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))"), '(Request ID: c7c555a1-102e-48a0-8681-54950ce9160f)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "videotrans\process\_overall.py", line 43, in run
File "faster_whisper\transcribe.py", line 641, in __init__
File "faster_whisper\utils.py", line 123, in download_model
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\_snapshot_download.py", line 230, in snapshot_download
huggingface_hub.errors.LocalEntryNotFoundError: Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input.
=====
Windows-10-10.0.26100-SP0
version:v3.81
frozen:True
language:zh