GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #48

Copy link
Copy link
Closed
#49
Closed
Updating the pubsub client breaks because it needs a newer version of protobuf#48
#49
Copy link
Assignees
busunkim96
Labels
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.

Description

@BinarSkugga
BinarSkugga
opened on Jun 12, 2020
Issue body actions

Environment 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

  1. Install google-cloud-pubsub==1.6.0 and protobuf==3.10.0
  2. 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'

Activity

  1. BinarSkugga commented on Jun 12, 2020

    @BinarSkugga
    BinarSkugga
    on Jun 12, 2020
    Author
    More actions

    I didn't fill this issue in the pubsub repository because the protobuf dependency lies here.

  2. yoshi-automation
    added
    triage meI really want to be triaged.
    on Jun 13, 2020
  3. BinarSkugga
    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, 2020
  4. busunkim96
    added a commit that references this issue on Jun 15, 2020

    fix(dependencies): increase protobuf version

    This issue will close once commit 9e15e36 is merged into the 'main' branch.
    9e15e36
  5. busunkim96
    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
    triage meI really want to be triaged.
    on Jun 15, 2020
  6. lkvr commented on Jun 16, 2020

    @lkvr
    lkvr
    on Jun 16, 2020
    More actions

    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.

  7. busunkim96
    closed this as completedin #49on Jun 16, 2020
  8. busunkim96
    added a commit that references this issue on Jun 16, 2020

    fix(dependencies): increase protobuf version (#49)

    This issue will close once commit 1ba6095 is merged into the 'main' branch.
    1ba6095
  9. gcf-merge-on-green
    added a commit that references this issue on Jun 16, 2020

    chore: release 1.20.1 (#51)

    7531a5e
  10. hauntsaninja commented on Jun 18, 2020

    @hauntsaninja
    hauntsaninja
    on Jun 18, 2020
    More actions

    @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.

  11. busunkim96 commented on Jun 18, 2020

    @busunkim96
    busunkim96
    on Jun 18, 2020
    Contributor
    More actions

    @hauntsaninja Done! (I didn't realize "yanking" had been added to PyPI).

  12. hauntsaninja commented on Jun 18, 2020

    @hauntsaninja
    hauntsaninja
    on Jun 18, 2020
    More actions

    Awesome, thanks!

  13. JustinBeckwith
    assigned
    busunkim96
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @busunkim96
    busunkim96

Labels

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.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.