Skip to content

uplink 0.9.4 is no longer compatible with Python 2.7.5 #217

@selimt

Description

@selimt

Describe the bug
0.9.4 changed the way abc was imported from collections. See: #201
When Python 2.7.5 imports uplink we get the following error:

>>> import uplink
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/uplink/__init__.py", line 4, in <module>
    from uplink import returns, types
  File "/usr/lib/python2.7/site-packages/uplink/returns.py", line 6, in <module>
    from uplink import decorators
  File "/usr/lib/python2.7/site-packages/uplink/decorators.py", line 6, in <module>
    from collections import abc
ImportError: cannot import name abc

To Reproduce

pip install uplink --upgrade
python
>>> import uplink

Expected behavior
We should be able to use uplink with Python 2.7 since it is still advertised as Python 2.7 compatible.

Additional context
I have not had a chance to test this to see if this issue is solved in future Python 2.7 releases but Python 2.7.5 is what we currently use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions