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文件删除,然后再启动软件,问题消失。

可灵AI限时福利速度领取>>

软件催更及1对1人工答疑支持: https://nuowa.net/1806
赞(1) 打赏
软件无法使用?点击查看常见问题说明>>

最近更新

可灵AI会员专属优惠邀请码,限时福利领取-诺瓦小站

可灵AI会员专属优惠邀请码,限时福利领取

可灵AI发福利了,通过专属优惠邀请码 6BZPEJK83JZ9 可额外获得50%灵感值。 现在图片、音乐、视频等等,啥都可以用AI生成,可灵AI就是快手旗下非常强大的一个AI内容创作平台,功能多样,效果强大。我最近半年几乎每周都会使用多次,...

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

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

支付宝扫一扫

微信扫一扫