EdjeElectronics/TensorFlow-Object-Detection-on-the-Raspberry-Pi

Import error on Raspberry Pi 3 B+

biranchi2018 opened this issue · 1 comments

$ python3 Object_detection_picamera.py --usbcam
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.4 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.5
return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 432, got 412
return f(*args, **kwds)
Traceback (most recent call last):
File "Object_detection_picamera.py", line 51, in
from utils import label_map_util
File "/home/pi/tensorflow/models/research/object_detection/utils/label_map_util.py", line 26, in
from object_detection.protos import string_int_label_map_pb2
ImportError: cannot import name 'string_int_label_map_pb2'

Found solution in this thread (tensorflow/models#1595)