#852 huggingface_hub.errors.LocalEntryNotFoundError: Cannot find an appropriate cached snapshot folder for the specified revi

*34.251* Posted at: 4 hours ago 👁11

语音识别阶段出错:[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

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于 faster-whisper 模型从国内镜像站下载失败导致的网络连接问题。错误显示"由于目标计算机积极拒绝,无法连接",表明网络代理设置可能存在问题,导致无法访问 huggingface 镜像站。

解决方案:

1. 创建 huggingface.lock 文件(推荐)

  • 在软件目录下(sp.exe 所在文件夹)创建一个名为 huggingface.lock 的空文件
  • 确保文件扩展名是 .lock,不是 .txt
  • 这样软件会直接从 HuggingFace 官网下载模型,避开不稳定的国内镜像站

2. 检查网络代理设置

  • 如果你使用了代理软件,请确保代理正常运行
  • 在软件的"网络代理"设置中填写正确的代理地址和端口(格式:地址:端口
  • 或者暂时关闭代理软件,使用直连方式

3. 使用专用下载工具

  • 访问 https://pyvideotrans.com/faster-whisper-download
  • 下载对应的模型下载工具,放在软件目录下运行
  • 工具会自动下载模型到正确位置

4. 手动下载模型

  • 前往 https://github.com/jianchang512/stt/releases/tag/0.0
  • 下载你需要的 faster-whisper 模型压缩包
  • 解压到软件的 models 文件夹中

原因分析:

这个错误发生在语音识别阶段,软件尝试从国内镜像站 hf-mirror.com 下载 faster-whisper 模型时,由于网络连接被拒绝而失败。最近国内镜像站确实存在不稳定问题,经常出现连接超时或限流。

建议优先采用第一种方案创建 huggingface.lock 文件,这是最简单有效的解决方法。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions