ImportError: cannot import name 'runtime_version' from 'google.protobuf'

when i am setting for tensorflow object detection API, while i am running this instruction for testing setup
object_detection/builders/model_builder_tf2_test.py

i am getting this error-
ImportError: cannot import name ‘runtime_version’ from ‘google.protobuf’ (C:\Anaconda3\envs\tfod\lib\site-packages\google\protobuf_init_.py)

Drar friends please help how to solve this

1 Like

If you are using the lastest version of protobuf, try installing an earlier version of protobuf.

For my object detection project version 3.12.3 is working fine.

You can get it here: Releases · protocolbuffers/protobuf · GitHub