#1045 RuntimeError: [Errno 22] Invalid argument: 'C:\\Users\\ZhuanZ\\AppData\\Local\\Temp\\360zipC:\\Users\\ZhuanZ\\AppData\\L

118.74* Posted at: 18 hours ago 👁11

语音识别阶段出错:Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 64, in run
File "videotrans\recognition\_overall.py", line 156, in _exec
RuntimeError: [Errno 22] Invalid argument: 'C:\Users\ZhuanZ\AppData\Local\Temp\360zipC:\Users\ZhuanZ\AppData\Local\Temp\360$0\models\token'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\trans_create.py", line 376, in recogn
File "videotrans\recognition\__init__.py", line 240, in run
File "videotrans\recognition\_base.py", line 67, in run
videotrans.configure._except.SpeechToTextError: [Errno 22] Invalid argument: 'C:\Users\ZhuanZ\AppData\Local\Temp\360zipC:\Users\ZhuanZ\AppData\Local\Temp\360$0\models\token':FasterAll

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 77, in run
File "videotrans\task\trans_create.py", line 412, in recogn
RuntimeError: [Errno 22] Invalid argument: 'C:\Users\ZhuanZ\AppData\Local\Temp\360zipC:\Users\ZhuanZ\AppData\Local\Temp\360$0\models\token':FasterAll

=====
Windows-10-10.0.19045-SP0
version:v3.78
frozen:True
language:zh

1 Replies

这个错误是由于软件临时文件路径异常导致的。错误信息显示路径中出现了重复拼接 C:\\Users\\ZhuanZ\\AppData\\Local\\Temp\\360zipC:\\Users\\ZhuanZ\\AppData\\Local\\Temp\\360$0\\models\\token,这通常与解压软件或系统环境有关。

请按以下步骤解决:

  1. 检查软件安装路径:确保 pyVideoTrans 安装在纯英文、无空格、无特殊字符的路径下(如 D:/videotrans),不要放在包含中文或空格的路径中。
  2. 清理临时文件

    • Win+R 打开运行对话框
    • 输入 %temp% 并回车
    • 删除该临时文件夹中的所有文件(如有无法删除的文件可跳过)
  3. 关闭解压软件:错误路径中的 360zip 表明可能与360压缩软件冲突。请在使用 pyVideoTrans 时完全退出360压缩软件。
  4. 重新启动软件:完成上述步骤后,重新启动 pyVideoTrans 并重试语音识别。

如果问题仍然存在,请尝试将软件移动到更简单的路径(如 D:/videotrans)并确保没有其他程序占用临时目录。

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