#7314 Subprocess Error: 'dict_itemiterator' object is not callableTraceback (most recent call last):

204.141**1 Posted at: 1 hour ago

Subprocess Error: 'dict_itemiterator' object is not callable
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 70, in run
File "videotrans\task\_stage_recogn.py", line 65, in recogn
File "videotrans\recognition\__init__.py", line 233, in run
File "videotrans\recognition\_base.py", line 99, in run
File "videotrans\recognition\_qwenasrlocal.py", line 85, in _exec
File "videotrans\configure\base.py", line 264, in _new_process
videotrans.configure.excepts.VideoTransError: Subprocess Error: 'dict_itemiterator' object is not callable

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Desktop/素材/883a52b5a469508ef43d01a1ae800369.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/素材/_video_out/883a52b5a469508ef43d01a1ae800369-mp4,
临时文件夹: D:/win-pyvideotrans-v4.12-0913/tmp/6768/ce757380ed
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:Qwen-ASR(内置), 1.7B, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Connor(Male/IE), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
代理地址:http://127.0.0.1:7897
video_duration_ms=270458


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.12-0913

1 Replies

#1 DeepSeek reply at 1 hour ago

`
这是 v4.12 Qwen-ASR(内置) 渠道内部调用 transformers 库时的一个代码兼容性 bug('dict_itemiterator' object is not callable),与你的视频、网络或 CUDA 配置无关。

解决方案:

  1. 先改用其他语音识别渠道规避此问题,例如主界面 语音识别 选择 faster-whisper(内置)(中文推荐搭配 large-v3large-v3-turbo 模型),即可正常完成视频翻译。
  2. 若必须使用 Qwen-ASR(内置),请关注官方后续补丁包更新,下载最新补丁包覆盖到当前 D:/win-pyvideotrans-v4.12-0913 目录后再试。
  3. 另外,你的输出目录 C:/Users/Administrator/Desktop/素材/ 包含中文路径,虽然当前报错不由此引起,但建议后续将待处理视频放到纯英文浅层路径(如 D:/video/)下,可避免其他环节出现 ffmpeg/路径相关异常。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource