马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 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等时都是不报错的,请问问下大家有没有遇到过这种情况呀?到底怎么回事?
|