question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.0.1 appears to break py2.7 compatibility

See original GitHub issue

Is 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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
adrianeboydcommented, Oct 19, 2022

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. as catalogue>=1.0.0,<1.1.0.

1reaction
Gerrit-Kcommented, Oct 19, 2022

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 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found