Broken Python 2.x support in new release 0.11.0
See original GitHub issueHello,
New release (0.11.0) is broken for Python 2.x users, below you can find steps to reproduce:
~/.virtualenvs/tmp-455f8c1518baad7 via tmp-455f8c1518baad7
β python --version
Python 2.7.14
~/.virtualenvs/tmp-455f8c1518baad7 via tmp-455f8c1518baad7
β pip install arrow
Collecting arrow
Collecting python-dateutil (from arrow)
Using cached python_dateutil-2.6.1-py2.py3-none-any.whl
Collecting six>=1.5 (from python-dateutil->arrow)
Using cached six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six, python-dateutil, arrow
Successfully installed arrow-0.11.0 python-dateutil-2.6.1 six-1.11.0
~/.virtualenvs/tmp-455f8c1518baad7 via tmp-455f8c1518baad7
β python
Python 2.7.14 (default, Sep 25 2017, 09:53:22)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import arrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/ng/.virtualenvs/tmp-455f8c1518baad7/lib/python2.7/site-packages/arrow/__init__.py", line 3, in <module>
from .arrow import Arrow
File "/Users/ng/.virtualenvs/tmp-455f8c1518baad7/lib/python2.7/site-packages/arrow/arrow.py", line 19, in <module>
from arrow import util, locales, parser, formatter
File "/Users/ng/.virtualenvs/tmp-455f8c1518baad7/lib/python2.7/site-packages/arrow/parser.py", line 12, in <module>
from backports.functools_lru_cache import lru_cache # pragma: no cover
ImportError: No module named backports.functools_lru_cache
>>>
Could you fix this please?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:44 (7 by maintainers)
Top Results From Across the Web
1356751 β python-uinput-0.11.2 is available - Red Hat Bugzilla
Please upload updated package, the one available in Fedora 24 (0.10.1-8) is completely broken - the library can't be even imported: >>> import...
Read more >Sunsetting Python 2
As of January 1st, 2020 no new bug reports, fixes, or changes will be made to Python 2, and Python 2 is no...
Read more >Community Updates β Requests 2.28.1 documentation
Requests has officially dropped support for Python 2.7. ... Broken in 2.8.0. ... This is the first release that follows our new release...
Read more >Release Notes - Versions 0.11.x - PyBuilder
FINAL VERSION TO SUPPORT PYTHON 2.6/3.3; Final 0.11.x release #505 ... Flake8 3.2.0 broke the build #420; Uptake new PIP upgrade features #Β ......
Read more >requests 2.7.0 - PyPI
pip install requests==2.7.0 ... This is the first release that follows our new release process. ... Support for bytestring URLs on Python 3.x...
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 am running into this issue when installing audreyr/cookiecutter (due to cookiecutter > jinja2-time > arrow).
The issue seems to be that pip looks for
backports.functools_lru_cache>=1.2.1
and not the pinnedbackports.functools_lru_cache==1.2.1
. If I remove the 1.5 version and install the 1.2.1 it works fine.What does needs fixing here and where does it needs to be fixed?
pip install
pip install -v
test import
pip install --user backports.functools_lru_cache==1.2.1
test import with 1.2.1
I am also seeing this issue on 0.12.1
I uninstalled 0.12.1, installed 0.12.0 and it worked fine.