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

*345:4606* Posted at: 6 hours ago 👁21

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

2 Replies

本条内容由 DeepSeek 回复
这个问题是由于 pyVideoTrans 在使用 faster-whisper 进行本地语音识别时,无法从 Hugging Face 下载所需的模型文件导致的。错误代码 401 Unauthorized 表示网络连接或模型下载授权失败。

核心解决方法:

1. 切换语音识别渠道:这是最快、最直接的解决方案。在软件的“语音识别”设置中,暂时不要使用 “faster-whisper”,而是切换到其他本地识别渠道,例如 “openai-whisper(本地)”。这两个渠道功能相似,但模型下载源不同,可以规避当前的问题。

2. 检查网络环境:确保您的网络可以正常访问国际网络(如 Hugging Face)。如果使用了代理软件,请尝试关闭代理或将其设置为全局模式,然后重启 pyVideoTrans 再试。

详细分析和步骤:

  • 问题根源faster-whisper 在执行前,需要先下载一个AI模型文件。这个下载请求被发送到了 huggingface.co 的服务器,但服务器返回了“未授权”(401)的错误。这通常不是您的API密钥问题,而是网络连接、地区限制或 Hugging Face 服务临时性问题。
  • 操作步骤(推荐方案1)

1. 打开 pyVideoTrans 软件。

2. 在主界面找到“语音识别”设置区域。

3. 点击下拉菜单,将识别渠道从 “faster-whisper(本地)” 更改为 “openai-whisper(本地)”

4. 然后重新开始您的视频翻译任务。

  • 备用方案:如果问题持续存在,或者您必须使用 faster-whisper,您可以尝试:
  • pyVideoTrans 的官方网站 pyvideotrans.com 查看是否有最新的版本(v3.80以上),新版本可能包含修复。
  • 根据官方文档,尝试手动下载模型文件并放置到指定目录(此操作相对复杂,如非必要,优先选择切换识别渠道)。

通常情况下,切换一个语音识别渠道即可解决问题。如果尝试后仍有其他错误,请提供新的错误日志。

Admin

可查看该页面说明,使用其他方法下载模型

https://pyvideotrans.com/819

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