Skip to content
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

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

Closed
ptarjan opened this issue Apr 12, 2022 · 4 comments
Closed
Assignees
Labels

Comments

@ptarjan
Copy link

ptarjan commented Apr 12, 2022

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

@anandolee
Copy link
Contributor

anandolee commented 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
Copy link

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
Copy link

vsennak commented 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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants