This repository was archived by the owner on May 21, 2025. It is now read-only.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As title. This fixes the following:
ImportError Traceback (most recent call last) [<ipython-input-1-84f0d6543138>](https://localhost:8080/#) in <cell line: 6>() 4 import tensorflow_ranking as tfr 5 import tensorflow_text as tf_text ----> 6 from tensorflow_serving.apis import input_pb2 7 from google.protobuf import text_format [/usr/local/lib/python3.10/dist-packages/tensorflow_serving/apis/input_pb2.py](https://localhost:8080/#) in <module> 3 # source: tensorflow_serving/apis/input.proto 4 """Generated protocol buffer code.""" ----> 5 from google.protobuf.internal import builder as _builder 6 from google.protobuf import descriptor as _descriptor 7 from google.protobuf import descriptor_pool as _descriptor_pool ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/usr/local/lib/python3.10/dist-packages/google/protobuf/internal/__init__.py)```