TensorFlow-Object-Detection-on-the-Raspberry-Pi icon indicating copy to clipboard operation
TensorFlow-Object-Detection-on-the-Raspberry-Pi copied to clipboard

undefined symbol: __atomic_fetch_add_8

Open johanf82 opened this issue 5 years ago • 6 comments
trafficstars

Hi,

I did your tutorial 3 times, but I keep getting the same error:

Traceback (most recent call last): File "Object_detection_picamera.py", line 23, in import cv2 File "/usr/local/lib/python3.7/dist-packages/cv2/init.py", line 3, in from .cv2 import * ImportError: /usr/local/lib/python3.7/dist-packages/cv2/cv2.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: __atomic_fetch_add_8

Did I do something wrong?

Thanks!

johanf82 avatar Mar 18 '20 15:03 johanf82

No same for me, but I found out you can use LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1 python3 Object_detection_picamera.py

g2721 avatar Apr 13 '20 15:04 g2721

But then I got this here: 2020-04-13 14:03:06.554427: 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 WARNING:tensorflow:From /home/pi/tensorflow1/models/research/object_detection/utils/label_map_util.py:138: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.

WARNING:tensorflow:From Object_detection_picamera.py:82: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.

WARNING:tensorflow:From Object_detection_picamera.py:88: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

: cannot connect to X server

g2721 avatar Apr 13 '20 15:04 g2721

But then I got this here: 2020-04-13 14:03:06.554427: 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 WARNING:tensorflow:From /home/pi/tensorflow1/models/research/object_detection/utils/label_map_util.py:138: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.

WARNING:tensorflow:From Object_detection_picamera.py:82: The name tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.

WARNING:tensorflow:From Object_detection_picamera.py:88: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.

: cannot connect to X server

hi g2721, I am facing the same problem.Did you find any solution for this error? Thank you.

lavanya5 avatar Apr 23 '20 14:04 lavanya5

@lavanya5 Yeah i got it working. I guess you are running it on the console ? For me installing Pixel (the gui for raspberrys or the complete Gui) worked

g2721 avatar Apr 23 '20 14:04 g2721

Just look for install x server on pi and type startX or so to activate the gui

g2721 avatar Apr 23 '20 14:04 g2721

Just look for install x server on pi and type startX or so to activate the gui

Thank you

lavanya5 avatar Apr 23 '20 16:04 lavanya5