question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tfjs-node fails to install correctly op Raspberry Pi

See original GitHub issue

TensorFlow.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

> @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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

3reactions
traumverlorencommented, Apr 14, 2020

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

2reactions
rthadurcommented, Aug 12, 2021

Please check this issue https://github.com/tensorflow/tfjs/issues/5173 , this has been resolved with latest versions.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found