You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Iterable abstract class was removed from collections in Python 3.10. See the deprecation note in the 3.9 collections docs. In the section Removed of the 3.10 docs, the item
Remove deprecated aliases to Collections Abstract Base Classes from the collections module. (Contributed by Victor Stinner in bpo-37324.)
is what results in your error.
You can use Iterable from collections.abc instead, or use Python 3.9 if the problem is in a dependency that can't be updated.
A potential workaround example to resolve the issue for a different library, hyper:
importcollections.abc#hyper needs the four following aliases to be done manually.collections.Iterable=collections.abc.Iterablecollections.Mapping=collections.abc.Mappingcollections.MutableSet=collections.abc.MutableSetcollections.MutableMapping=collections.abc.MutableMapping#Now import hyperimporthyper
Activity
rex commentedon Sep 20, 2022
Looks like it's a breaking change in python
3.10. SO answer here: https://stackoverflow.com/a/72032097/439499A potential workaround example to resolve the issue for a different library,
hyper: