uplink 0.9.4 is no longer compatible with Python 2.7.5
See original GitHub issueDescribe the bug 0.9.4 changed the way abc was imported from collections. See: https://github.com/prkumar/uplink/pull/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.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
uplink - PyPI
Builds Reusable Objects for Consuming Web APIs. Works with Requests, aiohttp, and Twisted. Inspired by Retrofit. A Quick Walkthrough, with GitHub API v3....
Read more >Uplink — Uplink 0.9.7 documentation
The public API is still evolving, but we expect most changes to be backwards compatible at this point. Uplink turns your HTTP API...
Read more >python-uplink/Lobby - Gitter
I posted the issue in the uplink github project but it seems like 0.9.4 broke the Python 2.7 compatibility. Trying to import uplink...
Read more >uplink - Bountysource
uplink 0.9.4 is no longer compatible with Python 2.7.5 $ 0. Created 1 year ago in prkumar/uplink with 0 comments. Describe the bug...
Read more >Issue 43489: Can't install, nothing to install - Python tracker
Also, Python 2.7 is no longer supported -- we are unlikely to fix any problems even if you report them in sufficient detail....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve merged #223 to add back 2.7 support in the upcoming patch release (i.e., v0.9.5). I’m thinking we should completely remove 2.7 support in the next minor version release (i.e., v0.10.0). I’ll add some disclaimer to the README that instructs py27 users to pin uplink to “<0.10.0”.
Thanks @shadchin for #223.
@prkumar Yes, we are in the process of upgrading all our code to Python 3.7 but currently we still depend on 2.7. If supporting 2.7 is no longer feasible we’ll pin our requirement for 2.7 to uplink 0.9.3. Thanks.