#1264 TypeError: unhashable type: 'dict'

43.249* Posted at: 18 hours ago 👁16

程序内部错误:unhashable type: 'dict':
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 306, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_base.py", line 210, in _local_mul_thread
File "videotrans\tts\_doubao2.py", line 140, in _item_task
File "videotrans\configure\_config_loader.py", line 723, in logs
TypeError: unhashable type: 'dict'


=
system:Windows-10-10.0.26200-SP0
version:v3.83
frozen:True
language:zh
root_dir:H:/SPFY/win-videotrans-v3.83

1 Replies

这是一个程序内部错误,发生在使用豆包2(Doubao2)TTS进行配音时。错误信息 unhashable type: 'dict' 表明代码试图将一个字典(dict)用作哈希键(例如,放入集合或作为字典的键),这在Python中是不允许的。

解决方案:

  1. 临时规避: 请暂时切换到其他配音渠道,例如 Edge-TTSOpenAI TTS,以完成当前任务。
  2. 报告问题: 这是一个软件Bug。请将完整的错误日志(位于 H:/SPFY/win-videotrans-v3.83/logs/ 目录下)和您遇到的问题描述,提交到该项目的GitHub Issues页面,以便开发者修复。

操作步骤:

  • 在主界面,将“配音渠道”从“豆包2”更换为其他可用的选项。
  • 重新尝试为字幕配音。
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