I encountered it while executing from object_detection.utils import label_map_util
in jupyter notebook. It is actually the tensorflow object detection tutorial
This is a solution which worked for me I'm not sure if it'll work for others.
The protoc verion I got through pip show protobuf
and protoc --version
were different. The version in pip was a bit outdated after I upgraded the pip version the problem was solved.
In order to upgrade it use pip install --upgrade protobuf