#1521 OSError: [Errno 22] Invalid argument: 'C:\\Users\\asus\\AppData\\Local\\Temp\\360zipC:\\Users\\asus\\AppData\\Local\\Tem

240e:398* Posted at: 2 days ago 👁23

Traceback (most recent call last):
File "videotrans\process\_overall.py", line 92, in run
File "faster_whisper\transcribe.py", line 681, in init
File "faster_whisper\utils.py", line 116, 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 2635, in model_info
File "huggingface_hub\hf_api.py", line 9573, in _build_hf_headers
File "huggingface_hub\utils\_deprecation.py", line 101, in inner_f
File "huggingface_hub\utils\_validators.py", line 114, in _inner_fn
File "huggingface_hub\utils\_headers.py", line 126, in build_hf_headers
File "huggingface_hub\utils\_headers.py", line 154, in get_token_to_send
File "huggingface_hub\utils\_auth.py", line 49, in get_token
File "huggingface_hub\utils\_auth.py", line 123, in _get_token_from_file
File "pathlib.py", line 1132, in read_text
File "pathlib.py", line 1117, in open
OSError: [Errno 22] Invalid argument: 'C:\Users\asus\AppData\Local\Temp\360zipC:\Users\asus\AppData\Local\Temp\360$0\models\token'


=
system:Windows-10-10.0.19045-SP0
version:v3.85
frozen:True
language:zh
root_dir:C:/Users/asus/AppData/Local/Temp/360zip$Temp/360$0

1 Replies

错误原因是软件解压路径包含特殊字符 $,导致无法正常下载 Whisper 模型。这是典型的路径问题。

解决方案:

  1. 重新解压软件到正确路径:

    • 在非系统盘(如 D 盘)新建一个纯英文文件夹,例如 D:\videotrans
    • 将软件压缩包完整解压到这个新文件夹中。
    • 绝对不要解压到包含 $、中文、空格或特殊符号的路径中。
  2. 启动软件:

    • 从新路径 D:\videotrans 中双击 sp.exe 启动软件。
  3. 首次运行:

    • 软件会自动从 HuggingFace 下载所需的语音识别模型,请确保网络通畅。

路径问题是导致此类错误的常见原因,按照上述步骤操作即可解决。

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