-
Notifications
You must be signed in to change notification settings - Fork 15.7k
3.18.0 isn't compatible with Python 2 despite being installable #8984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The 3.18.0 release brought a new py2.py3 wheel that has Python 3 syntax code in it; so avoid this release in tests. See: protocolbuffers/protobuf#8984
The 3.18.0 release brought a new py2.py3 wheel that has Python 3 syntax code in it; so avoid this release in tests. See: protocolbuffers/protobuf#8984
This breaks nrfutil, rendering a major provider's CLI tool for DFU upgrades inoperable with no way to pin this dependency. |
https://github.com/googleapis/python-api-core depends on protobuf and this version breaks Python2.7-based builds. My workaround was to force v3.17.3 by defining a new dependency. |
Fixes #276 The latest versions of Cloud libraries (except for google-cloud-storage) have moved on to python >= 3.6. However, users of the storage library and older Cloud libraries may be impacted. protocolbuffers/protobuf#8984
Fixes #276. This PR is being made to the v1 branch and will be released manually in 1.31.3. Protobuf 3.18.0 removed support for Python 2.7 and 3.5 https://github.com/protocolbuffers/protobuf/releases/tag/v3.18.0. Because the protobuf library does not use python_requires, pip will try to install it even on Python 2.7. A new release of google-api-core should result in google-cloud-* library users getting the last version of protobuf they can use. The latest versions of Cloud libraries (except for google-cloud-storage) have moved on to python >= 3.6. However, users google-cloud-storage and older Cloud libraries may be impacted. Also see protocolbuffers/protobuf#8984
@odelrio I just released a 1.x version of google-api-core that pins to protobuf <3.18.0. https://pypi.org/project/google-api-core/1.31.3/ |
Perfect! |
…mpatible versions to Python2 - chainer/chainer#8545 - protocolbuffers/protobuf#8984
Uh oh!
There was an error while loading. Please reload this page.
What version of protobuf and what language are you using?
Version: v3.18.0
Language: Python
What operating system (Linux, Windows, ...) and version?
macOS Mojave 10.14.6
What runtime / compiler are you using (e.g., python version or gcc version)
What did you do?
Steps to reproduce the behavior:
pip install protobuf==3.18.0
python -c "from google.protobuf import descriptor"
What did you expect to see
Either:
ERROR: Could not find a version that satisfies the requirement protobuf==3.18.0
in (2)
What did you see instead?
in (3)
The text was updated successfully, but these errors were encountered: