Skip to content

Not compatible with python 3.10? #144

Open

Description

@tobias-neubert

Hi everyone,

every time I try to from dyn.tm.zones import Zone using python 3.10 I get an error that Iterabe is no longer available in collections.

Is the dyn-python api not compatible with python3? Or am I doing it wrong?

Thankful for any help,
Tobias

Activity

  1. rex commented on Sep 20, 2022

    @rex

    Looks like it's a breaking change in python 3.10. SO answer here: https://stackoverflow.com/a/72032097/439499

    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

    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:

    import collections.abc
    #hyper needs the four following aliases to be done manually.
    collections.Iterable = collections.abc.Iterable
    collections.Mapping = collections.abc.Mapping
    collections.MutableSet = collections.abc.MutableSet
    collections.MutableMapping = collections.abc.MutableMapping
    #Now import hyper
    import hyper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions