Skip to content

ImportError: cannot import name 'builder' from 'google.protobuf.internal' #9778

Closed

Description

@ptarjan

https://stackoverflow.com/questions/71759248/importerror-cannot-import-name-builder-from-google-protobuf-internal

This seems to have changed between 3.19.4 and 3.20.0. Is this an intentional backward incompatibility? If so, is there a required client library upgrade to version 3.20.0 now?

What version of protobuf and what language are you using?
Version: main/v3.6.0/v3.5.0 etc.
Language: Python

What operating system (Linux, Windows, ...) and version?
Linux

What runtime / compiler are you using (e.g., python version or gcc version)
3.20.0

What did you do?
Steps to reproduce the behavior:

  1. Use an older client library like 3.15.5.
  2. See error in title

What did you expect to see
No error

What did you see instead?
Title error

Activity

  1. anandolee commented on Apr 13, 2022

    @anandolee
    Contributor

    "Use an older client library like 3.15.5." We only guarantee old generated code work with new runtime, but new version of generated code may not work with old runtime.

    Use 3.20 version of protoc with 3.15 runtime is not what we generated

    "If so, is there a required client library upgrade to version 3.20.0 now?"
    Yes, if you decide to use 3.20 protoc

  2. Nasiruddin696 commented on Sep 16, 2022

    @Nasiruddin696

    i face this problem any body help plz

    TypeError: Cannot set tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.local_name to None: None has type <class 'NoneType'>, but expected one of: (<class 'bytes'>, <class 'str'>)

  3. vsennak commented on Sep 16, 2022

    @vsennak
  4. Mohammadakhavan75 commented on Jan 27, 2024

    @Mohammadakhavan75
  5. liujingmao commented on Apr 11, 2026

    @liujingmao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions