关于easygui中egdemo()运行报错的问题求助
本帖最后由 chrisyou188 于 2021-10-12 21:19 编辑各位大佬,具体情况是这样的:
在运行easygui模块的功能演示方法时报错。
>>> import easygui as g
>>> g.egdemo()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\123\AppData\Roaming\Python\Python310\site-packages\easygui\boxes\demo.py", line 128, in easygui_demo
reply = choicebox(msg=intro_message,
File "C:\Users\123\AppData\Roaming\Python\Python310\site-packages\easygui\boxes\choice_box.py", line 38, in choicebox
mb = ChoiceBox(msg, title, choices, preselect=preselect,
File "C:\Users\123\AppData\Roaming\Python\Python310\site-packages\easygui\boxes\choice_box.py", line 123, in __init__
preselect_list = make_list_or_none(preselect, cast_type=int)
File "C:\Users\123\AppData\Roaming\Python\Python310\site-packages\easygui\boxes\choice_box.py", line 95, in make_list_or_none
if not isinstance(obj, collections.Sequence):
AttributeError: module 'collections' has no attribute 'Sequence'
当使用单个方法,如msgbox,enterbox等时都是不报错的,请问问下大家有没有遇到过这种情况呀?到底怎么回事?{:10_243:}
哈哈,此问题我已找到解决方法,上次是因为我安装了python3.10版本,卸载了3.9,这次重新安装回去了python3.9版本,又可以运行了。{:10_250:} 解决啦?! 我叫PCA 发表于 2021-11-7 16:46
解决啦?!
是的,我用3.10版本的时候出了问题,但是我在3.9版本就不会报错 {:10_254:} {:10_256:} {:5_95:} {:10_256:} 问题解决了 是不是可以混点鱼币{:10_257:}{:10_257:}
页:
[1]