question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Importing ABC directly from collections has been deprecated and will be removed in Python 3.10

See original GitHub issue

Use collections.abc for Python 3 and collections for Python 2.

easygui/boxes/choice_box.py
72:    if not isinstance(obj, collections.Sequence):

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
tirkarthicommented, Nov 2, 2021

I will create a PR

0reactions
toccata10commented, Jan 20, 2022

Same here: pip install easygui doesn’t install the corrected collections.abc version: it’s still the old version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing ABC directly from collections has been deprecated ...
Importing ABC directly from collections has been deprecated and will be removed in Python 3.10 after skipping Python 3.9.
Read more >
1718878 - Python 3.10 Support: Use `collections.abc` instead ...
It looks like the collections module was removed in python 3.10 after being deprecated since python 3.3. There is a new module called...
Read more >
abc submodule not an attribute of collections on Python 3.10.0 ...
Since collections.abc is a module, it should work if you import it: ... Direct access from collections was removed after being deprecated ......
Read more >
python - cannot import name 'MutableMapping' from 'collections'
The direct import has been deprecated since Python 3.3 and will stop working in Python 3.9. You need to import using from collections.abc...
Read more >
gcloud does not work with Python 3.10 - Issue Tracker
ERROR: gcloud failed to load: module 'collections' has no attribute 'Mapping' ... collections -> collections.abc issue has been deprecated since Python 3.3 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found