根据最后的报错信息,到指定文件中查看代码,发现是colored的函数问题。

self.esc = colored.style.ESC AttributeError: 'function' object has no attribute 'ESC'

gooey库使用的colored包版本最高只能到1.4.4

colored在2023.7进行了更新到了2.0版本,而gooey库并未适应,安装指定的color版本即可。

pip install colored==1.4.4

colored 包的更新时间线:


colored_release.png