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.

Unsupported system error when installing on M1 / Apple Silicon

See original GitHub issue

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 11.0.1 (20B29)
  • TensorFlow.js installed from (npm or script link): npm
  • TensorFlow.js version: 2.8.3

Describe the problem

Installation fails due to a missing precompiled libtensorflow for darwin / arm64.

Apple has their own fork of TensorFlow supporting their chips-- is there a way to tell the installation script to use their libtensorflow.dylib?

Provide the exact sequence of commands / steps that you executed before running into the problem

npm install @tensorflow/tfjs-node --save

Any other info / logs

npm ERR! code 1
npm ERR! path /Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! CPU-darwin-2.8.3.tar.gz
npm ERR! * Downloading libtensorflow
npm ERR! /Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node/scripts/install.js:100
npm ERR!     throw new Error(`Unsupported system: ${libType}-${platform}-${os.arch()}`);
npm ERR!           ^
npm ERR! 
npm ERR! Error: Unsupported system: cpu-darwin-arm64
npm ERR!     at getPlatformLibtensorflowUri (/Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node/scripts/install.js:100:11)
npm ERR!     at downloadLibtensorflow (/Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node/scripts/install.js:134:7)
npm ERR!     at async run (/Users/nicklee/Documents/Development/<redacted>/src/<redacted>/node_modules/@tensorflow/tfjs-node/scripts/install.js:197:5)

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nicklee/.npm/_logs/2021-01-09T02_53_09_673Z-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:13
  • Comments:94 (2 by maintainers)

github_iconTop GitHub Comments

18reactions
tfang17commented, Oct 28, 2021

Need M1 mac support!

11reactions
pyu10055commented, Dec 4, 2021

We are expecting to release a new version next week. Thanks for the patience.

On Fri, Dec 3, 2021 at 6:12 PM Charlie Fish @.***> wrote:

@pyu10055 https://github.com/pyu10055 Is there any chance we could get an ETA on a release for this tho? Although pointing to the branch directly works fine, I’d love to submit some PRs to some dependencies that use tfjs, and it’s highly unlikely PRs will get approved when pointing to a branch.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/tensorflow/tfjs/issues/4514#issuecomment-985948486, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA7MTDWNA26H445KS6K6TUPF2HTANCNFSM4V3HOZSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >
How to Install Unsupported Development Software on M1 Macs
First, you should use only one architecture for installing the entire technology stack in your development environment. For example – with Rosetta, we...
Read more >
How to Fix the "macOS Could Not Be Installed on Your ...
Open the Apple () menu and select Restart from the dropdown menu to do so. If your Mac is unresponsive, press and hold...
Read more >
What to try if you can't install or activate Office for Mac
Error code 0xD000001c. · In the top menu bar, select the Apple icon > System Preferences > Sharing (third row.) · In the...
Read more >
An error to Installing VirtualBox on MacBook Air
The error is: " Unsupported hardware architecture detected! ... An error to Installing VirtualBox on MacBook Air ... Chip Apple M1
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