GeezerVison is showing github.com — Updating the pubsub client breaks because it needs a newer version of protobuf · Issue #48 · googleapis/python-api-core
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Updating the pubsub client breaks because it needs a newer version of protobuf #48Labels priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionEnvironment details
- OS type and version: Windows 10
- Python version: 3.6.9
- pip version: 20.0.2
google-api-core version: 1.16.0
Steps to reproduce
- Install google-cloud-pubsub==1.6.0 and protobuf==3.10.0
- Import the PushConfig object to create a push topic
Quick fix
Reinstalling protobuf fixes this issue, to my knowledge, 3.12 seems enough.
Stack trace
Traceback (most recent call last):
File "C:\Users\Sollum\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\Sollum\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Sollum\PycharmProjects\sollumcloudplatform\src\main.py", line 19, in <module>
from src.procedures import create_app
File "C:\Users\Sollum\PycharmProjects\sollumcloudplatform\src\procedures.py", line 15, in <module>
from src.utils.decorators import memoize
File "C:\Users\Sollum\PycharmProjects\sollumcloudplatform\src\utils\decorators.py", line 14, in <module>
from google.cloud.pubsub_v1.proto.pubsub_pb2 import PushConfig
File "C:\Users\Sollum\PycharmProjects\sollumcloudplatform\venv\lib\site-packages\google\cloud\pubsub_v1\__init__.py", line 17, in <module>
from google.cloud.pubsub_v1 import types
File "C:\Users\Sollum\PycharmProjects\sollumcloudplatform\venv\lib\site-packages\google\cloud\pubsub_v1\types.py", line 32, in <module>
from google.cloud.pubsub_v1.proto import pubsub_pb2
File "C:\Users\Sollum\PycharmProjects\sollumcloudplatform\venv\lib\site-packages\google\cloud\pubsub_v1\proto\pubsub_pb2.py", line 30, in <module>
create_key=_descriptor._internal_create_key,
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'
ActivityBinarSkugga commented on Jun 12, 2020 I didn't fill this issue in the pubsub repository because the protobuf dependency lies here. changed the title [-]Updating the pubsub breaks because it needs a newer version of protobuf[/-] [+]Updating the pubsub client breaks because it needs a newer version of protobuf[/+] on Jun 14, 2020added a commit that references this issue on Jun 15, 2020This issue will close once commit 9e15e36 is merged into the 'main' branch.9e15e36 added priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. and removed on Jun 15, 2020lkvr commented on Jun 16, 2020 Same issue, but what I installed
google-cloud-pubsub==1.6.0
googleapis-common-protos==1.5.2
protobuf in sources has 3.8.0
atm googleapis-common-protos is the latest version, guess it also needs to be updated with latest protobuf. added a commit that references this issue on Jun 16, 2020This issue will close once commit 1ba6095 is merged into the 'main' branch.1ba6095 hauntsaninja commented on Jun 18, 2020 @busunkim96 thanks for the fix! would it be possible to yank the 1.20.0 release?
i have a pinned version of protobuf and my dependency resolver thinks 1.20.0 is safe to upgrade to. busunkim96 commented on Jun 18, 2020 @hauntsaninja Done! (I didn't realize "yanking" had been added to PyPI). hauntsaninja commented on Jun 18, 2020
MetadataMetadatapriority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DevelopmentNo branches or pull requestsIssue actions
|