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

ImportError: cannot import name 'Deque' in Python < 3.5.4 #88

Closed
andersk opened this issue Sep 23, 2019 · 0 comments · Fixed by #90
Closed

ImportError: cannot import name 'Deque' in Python < 3.5.4 #88

andersk opened this issue Sep 23, 2019 · 0 comments · Fixed by #90

Comments

@andersk
Copy link
Contributor

andersk commented Sep 23, 2019

On Ubuntu 16.04, which has Python 3.5.2, apns2.client fails to import, because typing.Deque was not added until Python 3.5.4.

>>> import apns2.client
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/apns2/client.py", line 9, in <module>
    from typing import Deque, Dict, Iterable, Optional, Tuple, Type, Union
ImportError: cannot import name 'Deque'
andersk added a commit to andersk/PyAPNs2 that referenced this issue Oct 4, 2019
On Ubuntu 16.04, which has Python 3.5.2, `apns2.client` failed to
import, because `typing.Deque` was not added until Python 3.5.4.

Fixes Pr0Ger#88.

Signed-off-by: Anders Kaseorg <[email protected]>
@Pr0Ger Pr0Ger closed this as completed in #90 Oct 8, 2019
Pr0Ger pushed a commit that referenced this issue Oct 8, 2019
On Ubuntu 16.04, which has Python 3.5.2, `apns2.client` failed to
import, because `typing.Deque` was not added until Python 3.5.4.

Fixes #88.

Signed-off-by: Anders Kaseorg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant