1.0.1 appears to break py2.7 compatibility
See original GitHub issueIs v1.x supposed to maintain python 2.7 compatibility? It looks like the recent commit from 10 days ago (https://github.com/explosion/catalogue/commit/ef4fd81a122ea43ee0ec958fc86ab6e22291f11d) creates 1.0.1 but introduces changes that require python 3.
This was discovered when trying to install an older compatible spacy package, but pip grabbed 1.0.1 which ends up producing this error:
.../site-packages/catalogue/_importlib_metadata/__init__.py", line 170 def __len__(self) -> int: ^ SyntaxError: invalid syntax
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ERROR: Can not execute `setup.py` since setuptools is not ...
Problem description Hi, I am new to python and I am trying to install the email package, but it says "setuptools is not...
Read more >Source code for sympy.core.compatibility
... import `unicode` for Python 2/3 compatible function * `unichr()` removed in ... not sufficient to break ties in this list and the...
Read more >Failed to install Python Cryptography package with PIP and ...
So, first thing you should try is upgrading your pip and installing the latest cryptography version as older versions don't get newer wheel ......
Read more >Planned Breaking Change in Rust 1.1 - Reddit
There is a crucial difference between "doesn't break stability (but they do)" and "allows themselves to break compatibility, but in practice doesn't do ......
Read more >Package List — Spack 0.20.0.dev0 documentation
Versions: 1.0.1, 1.0; Build Dependencies: cmake, ninja, boost, mpi ... split off from EPICS Base 3.16.1 as a separate module for EPICS 7....
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
Sorry about that! There was no great solution here that fixed python 2.7 support, since yanking isn’t supported. I was hoping that relatively few people would have pinned it in the brief period before it was yanked.
v1.0.1 is permanently deleted.
For python 3.6+ you can pin to
catalogue==1.0.2
. If you need python 2 and python 3 support, you’d need to pin a range instead e.g. ascatalogue>=1.0.0,<1.1.0
.No worries, I was glad there already was a reported issue and it was easy to see what’s going on. Will pin to
1.0.2
then 👍