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

HadoopFileSystem Error related to label_map_util.py

aerdengiz opened this issue · 0 comments

Hello, I followed all the instructions for installing Tensorflow, OpenCV etc. as described in readme.MD

Using:
RaspberryPI 4B - latest Buster release, 1GB RAM, 64GB SD - 51.5GB free
Python3 version: 3.7.3
Tensorflow version: 1.14.0
opencv version: 3.4.6
protoc version: 3.6.1

I get the following Error Message:

2020-04-09 10:47:21.109267: E tensorflow/core/platform/hadoop/hadoop_file_system.cc:132] HadoopFileSystem load error: libhdfs.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "Object_detection_picamera.py", line 51, in
from utils import label_map_util
File "/home/pi/tensorflow1/models/research/object_detection/utils/label_map_util.py", line 27, in
from object_detection.protos import string_int_label_map_pb2
ImportError: cannot import name 'string_int_label_map_pb2' from 'object_detection.protos' (/home/pi/tensorflow1/models/research/object_detection/protos/init.py)

In addition, everything is created and installed in the base environment, there is no virtual env present, but if I try to import tensorflow in python command line it fails while when I run it with Jupyter notebook it works!

**Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
2020-04-09 11:03:19.017847: E tensorflow/core/platform/hadoop/hadoop_file_system.cc:132] HadoopFileSystem load error: libhdfs.so: cannot open shared object file: No such file or directory**

Thank you for your help