braincraft tensor flow unable to load libtensorflow_io_plugins.so

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
pjrestrepo
 
Posts: 49
Joined: Sun Apr 15, 2012 7:43 pm

braincraft tensor flow unable to load libtensorflow_io_plugins.so

Post by pjrestrepo »

I am trying to use Adafruit Braincraft hat on a raspberry 4 to run tensor flow. After solving some issues with help from Adafruit support, I made it to the tensor flow installation here:

https://learn.adafruit.com/running-tens ... ow-2-setup
All installation commands executed without an error message.

RELEASE=https://github.com/PINTO0309/Tensorflow ... arch64.whl
CPVER=$(python --version | grep -Eo '3\.[0-9]{1,2}' | tr -d '.')
pip install $(echo "$RELEASE" | sed -e "s/cp[0-9]\{3\}/CP$CPVER/g")

I thought this last command should be pip3 rather than pip. I tried both with the same result: no error messages when installing, but the same error messages when executing the test program

Note: The camera and the Braincraft display are both working well.

Here are the last two commands of the installation:

restrepo@braincraftpi:~ $ cd rpi-vision/
restrepo@braincraftpi:~/rpi-vision $ python3 tests/pitft_labeled_output.py --tflite
pygame 2.1.2 (SDL 2.0.16, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
/home/restrepo/.local/lib/python3.9/site-packages/tensorflow_io/python/ops/__init__.py:98: UserWarning: unable to load libtensorflow_io_plugins.so: unable to open file: libtensorflow_io_plugins.so, from paths: ['/home/restrepo/.local/lib/python3.9/site-packages/tensorflow_io/python/ops/libtensorflow_io_plugins.so']
caused by: ["[Errno 2] The file to load file system plugin from does not exist.:
'/home/restrepo/.local/lib/python3.9/site-packages/tensorflow_io/python/ops/libtensorflow_io_plugins.so'"]
warnings.warn(f"unable to load libtensorflow_io_plugins.so: {e}")
/home/restrepo/.local/lib/python3.9/site-packages/tensorflow_io/python/ops/__init__.py:104: UserWarning: file system plugins are not loaded: unable to open file: libtensorflow_io.so, from paths: ['/home/restrepo/.local/lib/python3.9/site-packages/tensorflow_io/python/ops/libtensorflow_io.so']
caused by: ['/home/restrepo/.local/lib/python3.9/site-packages/tensorflow_io/python/ops/libtensorflow_io.so: cannot open shared object file: No such file or directory']
warnings.warn(f"file system plugins are not loaded: {e}")
xcb_connection_has_error() returned true
Traceback (most recent call last):
File "/home/restrepo/rpi-vision/tests/pitft_labeled_output.py", line 32, in <module>
screen = pygame.display.set_mode((0,0), pygame.FULLSCREEN)
pygame.error: No available video device

restrepo@braincraftpi:~/rpi-vision $ echo $DISPLAY
:0

What am I doing wrong?

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”