#1137 OSError: [Errno 22] Invalid argument: 'C:\\Users\\毕怀宇\\AppData\\Local\\Temp\\360zipC:\\Users\\毕怀宇\\AppData\\Local\\Temp\

120.253* Posted at: 9 days ago 👁31

Traceback (most recent call last):
File "videotrans\process\_overall.py", line 44, in run
File "faster_whisper\transcribe.py", line 641, in init
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 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\毕怀宇\AppData\Local\Temp\360zipC:\Users\毕怀宇\AppData\Local\Temp\360$1\models\token'


=
Windows-10-10.0.26200-SP0
version:v3.81
frozen:True
language:zh

2 Replies

这个错误是由于软件解压路径包含中文字符和特殊符号导致的。faster-whisper模型在下载时需要访问HuggingFace,但当前路径 C:\\Users\\毕怀宇\\AppData\\Local\\Temp\\360zipC:\\Users\\毕怀宇\\AppData\\Local\\Temp\\360$1\\models\\token 无效。

请按以下步骤解决:

  1. 重新解压软件到纯英文路径:将软件完整解压到不含中文、空格和特殊字符的路径,例如 D:\videotransD:\pyVideoTrans
  2. 确保网络通畅:首次使用faster-whisper需要下载模型,请确保网络能够正常访问HuggingFace。如果网络受限,可以在软件的"语音识别设置"中配置网络代理。
  3. 重新启动软件:在新的英文路径下运行 sp.exe,然后再次尝试语音识别。

如果问题依旧,请提供新的日志文件(位于新解压目录下的 logs/ 文件夹中)。

不可在压缩包直接双击运行,必须先解压后再运行

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