tfjs-node fails to install correctly op Raspberry Pi
See original GitHub issueTensorFlow.js version
1.7.2 (and older ones too, however some very old versions do work on the rbi, like 1.2.11 do work)
Node version
12.14.1
Raspbian version
PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)” NAME=“Raspbian GNU/Linux” VERSION_ID=“10” VERSION=“10 (buster)” VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian
Tested on a Pi 4 with 4GB of RAM
Describe the problem or feature request
After installing the tfjs-node dependency, the required rebuild step fails with the message: Unsupported system: cpu-linux-arm
Code to reproduce the bug / link to feature request
- Create a dummy test folder named test
- In that folder install the latest version of tfjs-node
npm i @tensorflow/tfjs-node
- Run the rebuild script as indicated by the readme (as per: https://github.com/tensorflow/tfjs/tree/master/tfjs-node#rebuild-the-package-on-raspberry-pi)
- This results in an error:
> @tensorflow/tfjs-node@1.7.2 install /home/pi/test/node_modules/@tensorflow/tfjs-node
> node scripts/install.js
CPU-linux-1.7.2.tar.gz
* Downloading libtensorflow
(node:15080) UnhandledPromiseRejectionWarning: Error: Unsupported system: cpu-linux-arm
at getPlatformLibtensorflowUri (/home/pi/test/node_modules/@tensorflow/tfjs-node/scripts/install.js:95:11)
at downloadLibtensorflow (/home/pi/test/node_modules/@tensorflow/tfjs-node/scripts/install.js:129:7)
at async run (/home/pi/test/node_modules/@tensorflow/tfjs-node/scripts/install.js:190:5)
(node:15080) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15080) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@tensorflow/tfjs-node@1.7.2 /home/pi/test/node_modules/@tensorflow/tfjs-node
How can I install a recent version that does work on the rbpi?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:10
Top Results From Across the Web
Installation error for tfjs-node on raspberry pi 3
Hello, I'm unable to install tensorflowjs for node on raspberry pi. When I install tfjs-node, and run it: Welcome to Node.js v14.16.0.
Read more >tensorflow/tfjs-node: Error: Failed to load SavedModel: Op ...
I supose that the error is related with the SavedModel version, but I don't know how convert it to use in the Rapsberry...
Read more >Convert a Python SavedModel to TensorFlow.js format
How to install and use the TensorFlow.js converter on the SavedModel you exported from Python. Take the resulting files from conversion and ...
Read more >@tensorflow/tfjs-node - npm
Start using @tensorflow/tfjs-node in your project by running `npm i ... Machines with Python 3.x will not install the bindings properly.
Read more >Longer Vision Technology
(Cited from How to build a Raspberry Pi Kubernetes cluster using MicroK8s: Setting up each Pi); k3s, ... 3.2 k3s Installation on Work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI wanted to update that I found a similar issue also open and these instructions worked for me on a RPI 4 (in the meantime til this is resolved):
Similar issue: https://github.com/tensorflow/tfjs/issues/2872
Steps to work around: https://github.com/yhwang/node-red-contrib-tf-model
Please check this issue https://github.com/tensorflow/tfjs/issues/5173 , this has been resolved with latest versions.