Skip to content
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

Python 3.10 compatibility #141

Closed
to-bee opened this issue Mar 19, 2022 · 3 comments
Closed

Python 3.10 compatibility #141

to-bee opened this issue Mar 19, 2022 · 3 comments
Labels

Comments

@to-bee
Copy link

to-bee commented Mar 19, 2022

Pyapns2 relies on hyper, hyperframe and h2. All of them currently not supporting python3.10. hyper is even an archived project.
Are there any plans to further maintain those packages?

Tobi

@daveisfera
Copy link

This appears to be a duplicate of #74 and #126

@alliefitter
Copy link

Workaround for the meantime.

if version_info.major >= 3 and version_info.minor >= 10:
    """
    **************
    * WORKAROUND *
    **************
    
    The apns2 package is throwing errors because some aliases in collections were removed in 3.10. Specifically, the
    error is coming from a dependency of apns2 named hyper.  
    """
    import collections
    from collections import abc
    collections.Iterable = abc.Iterable
    collections.Mapping = abc.Mapping
    collections.MutableSet = abc.MutableSet
    collections.MutableMapping = abc.MutableMapping

@github-actions
Copy link

github-actions bot commented Dec 8, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants