-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
choicebox not working under Python 3.10.1 #191
Comments
The error is due because staritng from Python 3.7 Sequnce has been moved to collections.abc
and then replacing in the file I don't know if it is the best solution but it worked with me |
I now fixed it by replacing in the file collections with collections.abc |
Seems to have been fixed in a3391a3 |
Yep, this one should be fixed now. Thank you for reporting it! |
import easygui
easygui.choicebox("Text", choices = ['a', 'b'])
results in Error:
Traceback (most recent call last):
File "./dummy.py", line 2, in
easygui.choicebox("Text", choices = ['a', 'b'])
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/easygui/boxes/choice_box.py", line 38, in choicebox
mb = ChoiceBox(msg, title, choices, preselect=preselect,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/easygui/boxes/choice_box.py", line 123, in init
preselect_list = make_list_or_none(preselect, cast_type=int)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/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'
The text was updated successfully, but these errors were encountered: