Protobuf missing file on Tensorflow Object Detection API installation

Skip to first unread message

Francisco Ferraz

Mar 23, 2022, 6:33:19 AMMar 23
to Protocol Buffers

I'm trying to install the Tensorflow Object Detection API by following this tutorial:

When I try to test the installation I get the following error:

Traceback (most recent call last): File "object_detection/builders/", line 25, in <module> from import model_builder File "/home/deeplearning/model_compression/TFOD-TRT/venv/lib/python3.6/site-packages/object_detection/builders/", line 23, in <module> from import anchor_generator_builder File "/home/deeplearning/model_compression/TFOD-TRT/venv/lib/python3.6/site-packages/object_detection/builders/", line 27, in <module> from object_detection.protos import anchor_generator_pb2 File "/home/deeplearning/model_compression/TFOD-TRT/venv/lib/python3.6/site-packages/object_detection/protos/", line 5, in <module> from google.protobuf.internal import builder as _builder ImportError: cannot import name 'builder'

I've made multiple tries and it seems to have nothing to do with NVIDIA/CUDA/Python or Tensorflow versions. Where is this file and why is it not appearing?

Thanks in advance,

Maximilian Bachl

Apr 8, 2022, 8:34:46 AMApr 8
to Protocol Buffers
I could solve the issue by not compiling my .proto files with the newest version of the protoc compiler but by using the previous version v3.19.4 (see
Reply all
Reply to author
0 new messages