AI软件下载
有趣网站推荐及实用软件下载

a related error excepted in the file ..ast_utils.py at line: 152: "attr = getattr(node, field)" with error msg: "AttributeError: 'ClassDef' object has no attribute 'type_params'",

今天在调试cosyvoice的时候发生报错:部分错误信息如下:

Exception: During ast indexing the file F:\gongxiang\CosyVoice\myenv\Lib\site-packages\modelscope\models\audio\aec\layers\activations.py, a related error excepted in the file F:\gongxiang\CosyVoice\myenv\lib\site-packages\modelscope\utils\ast_utils.py at line: 152: “attr = getattr(node, field)” with error msg: “AttributeError: ‘ClassDef’ object has no attribute ‘type_params'”, please double check the origin file F:\gongxiang\CosyVoice\myenv\Lib\site-packages\modelscope\models\audio\aec\layers\activations.py to see whether the file is correctly edited.

错误内容是AST 工具异常,ClassDef 类型的节点不支持访问属性 type_params,应该是缓存问题,因为我之前用过不同版本的cosyvoice,更新了不同版本之后属性发生变化modelscope还是使用的不同版本的缓存文件,所以才导致错误的,解决方法:

打开如下路径:C:\Users\你的电脑用户名\.cache\modelscope,将文件夹内的ast_indexer文件删除,然后再启动软件,问题消失。

电脑不给力运行不了?试试高配云电脑>>
如需1对1人工答疑支持
知识星球(2月2.5折限时优惠中):扫码加入↓ ↓ ↓
赞(1) 打赏
软件无法使用?点击查看常见问题说明>>

最新发布

ToDesk云电脑运行AI软件整合包使用方法-诺瓦小站

ToDesk云电脑运行AI软件整合包使用方法

我分享的大部分AI软件对电脑配置要求都是比较高的。比如显卡一般都要英伟达8G以上显存,有时CPU和内存也有要求,这类配置比较好用的电脑一般都要8000以上,如果你没有电脑或是预算比较充足,可以直接购买高配电脑,如果已经有电脑了或是预算达不到...

觉得文章对你有帮助就打赏一下作者

非常感谢你的打赏,我将有更多的动力继续提供优质内容,让我们一起创建更加美好的世界!

支付宝扫一扫

微信扫一扫