You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImportError: cannot import name 'builder' from 'google.protobuf.internal' #9778
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
"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
Reacted by lxyscls, amouawad, fehimeBak, Colton Padden and XuMing-Cen
TypeError: Cannot set tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference.local_name to None: None has type <class 'NoneType'>, but expected one of: (<class 'bytes'>, <class 'str'>)
Activity
anandolee commentedon Apr 13, 2022
"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
Nasiruddin696 commentedon Sep 16, 2022
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'>)
vsennak commentedon Sep 16, 2022
Try the solution mentioned here, this had worked for me.
https://stackoverflow.com/questions/71759248/importerror-cannot-import-name-builder-from-google-protobuf-internal
Mohammadakhavan75 commentedon Jan 27, 2024
This works for me! Thank you.
liujingmao commentedon Apr 11, 2026
Try the solution mentioned here, this had worked for me. https://stackoverflow.com/questions/71759248/importerror-cannot-import-name-builder-from-google-protobuf-internal
This works for me! Thank you.