#671 RuntimeError: Data processing error: CAS service error : Reqwest Error: HTTP status client error (401 Unauthorized), dom

*45d:830* Posted at: 3 hours ago 👁12

语音识别阶段出错:Data processing error: CAS service error : Reqwest Error: HTTP status client error (401 Unauthorized), domain: https://cas-server.xethub.hf.co/reconstruction/b5de55e781fd93b7d472c8ca3f7d40d870a3be764f8bb1a9c4a0511c55f9ca5b[faster-whisper(本地)]:

Traceback (most recent call last):

File "videotrans\task\trans_create.py", line 375, in recogn

File "videotrans\recognition\__init__.py", line 250, in run

File "videotrans\recognition\_base.py", line 70, in run

File "videotrans\recognition\_overall.py", line 144, in _exec

RuntimeError: Data processing error: CAS service error : Reqwest Error: HTTP status client error (401 Unauthorized), domain: https://cas-server.xethub.hf.co/reconstruction/b5de55e781fd93b7d472c8ca3f7d40d870a3be764f8bb1a9c4a0511c55f9ca5b

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 97, in run

File "videotrans\task\trans_create.py", line 411, in recogn

RuntimeError: Data processing error: CAS service error : Reqwest Error: HTTP status client error (401 Unauthorized), domain: https://cas-server.xethub.hf.co/reconstruction/b5de55e781fd93b7d472c8ca3f7d40d870a3be764f8bb1a9c4a0511c55f9ca5b

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
这个问题是由于 pyVideoTrans 在尝试从 Hugging Face 下载或加载 faster-whisper 语音识别模型时,遇到了网络认证错误(401 Unauthorized)。错误信息指向 hf-mirror.com 镜像站或相关认证服务。

核心原因分析:

错误日志中的 401 Unauthorized 表明软件在访问模型资源时被拒绝,这通常与网络环境(如公司防火墙、地区网络限制)或 Hugging Face 服务的临时性问题有关。您使用的是 faster-whisper 本地识别模式,它需要先下载相应的模型文件才能工作。

解决方案(请按顺序尝试):

1. 首选方案:使用专用下载工具(最简单有效)

  • 请访问 pyVideoTrans 官网的下载页面:https://pyvideotrans.com/downpackage
  • 在页面上找到名为 “faster-whisper模型下载工具” 的链接,下载对应的 EXE 文件。
  • 将下载的 EXE 文件放置到 pyVideoTrans 主程序(如 sp.exe)所在的同一文件夹内。
  • 双击运行该工具,它会自动为您下载所需的模型文件到正确的 models 目录下。
  • 下载完成后,重新启动 pyVideoTrans 再尝试语音识别。

2. 备选方案一:配置代理并从官网下载(如果您可以科学上网)

  • pyVideoTrans 软件的设置界面中,找到“网络代理”选项。
  • 填入您可用的代理地址和端口(格式如:127.0.0.1:10809)。
  • 在软件根目录下,创建一个名为 huggingface.lock 的空文件(注意后缀是 .lock,创建时请确保系统设置了显示文件扩展名)。
  • 此操作会强制软件从官方的 huggingface.co 域名下载,通常更稳定。完成后重启软件。

3. 备选方案二:更换语音识别渠道

  • 如果上述方法均无效,您可以暂时不使用 faster-whisper。
  • pyVideoTrans 的“语音识别”设置中,尝试切换到其他本地识别渠道,例如 “openai-whisper(本地)”“阿里FunASR中文识别”。这些渠道的模型下载机制可能不同,有可能绕过当前的问题。

如果问题依然存在,建议访问 pyVideoTrans 的官方文档 https://pyvideotrans.com 或 GitHub 仓库的 Issues 页面寻求更多帮助。

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

Similar issues already exist

Trending Questions