Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registration of backend tensorflow failed Error: Could not locate the bindings file. #162

Closed
bengrunfeld opened this issue Feb 8, 2019 · 3 comments

Comments

@bengrunfeld
Copy link

bengrunfeld commented Feb 8, 2019

Running on Amazon Web Services via Elastic Beanstalk.

System information:

Linux ip-172-31-30-251 4.14.88-72.76.amzn1.x86_64 #1 SMP Mon Jan 7 19:47:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Error:

Nodejs Environment detected 
Registration of backend tensorflow failed
Error: Could not locate the bindings file. Tried:
 → /var/app/current/node_modules/@tensorflow/tfjs-node/build/tfjs_binding.node
 → /var/app/current/node_modules/@tensorflow/tfjs-node/build/Debug/tfjs_binding.node
 → /var/app/current/node_modules/@tensorflow/tfjs-node/build/Release/tfjs_binding.node
 → /var/app/current/node_modules/@tensorflow/tfjs-node/out/Debug/tfjs_binding.node
 → /var/app/current/node_modules/@tensorflow/tfjs-node/Debug/tfjs_binding.node
 → /var/app/current/node_modules/@tensorflow/tfjs-node/out/Release/tfjs_binding.node
 → /var/app/current/node_modules/@tensorflow/tfjs-node/Release/tfjs_binding.node
 → /var/app/current/node_modules/@tensorflow/tfjs-node/build/default/tfjs_binding.node
 → /var/app/current/node_modules/@tensorflow/tfjs-node/compiled/10.15.0/linux/x64/tfjs_binding.node
    at bindings (/var/app/current/node_modules/bindings/bindings.js:96:9)
    at /var/app/current/node_modules/@tensorflow/tfjs-node/dist/index.js:11:60
    at Environment.registerBackend (/var/app/current/node_modules/@tensorflow/tfjs-core/dist/environment.js:210:27)
    at Object.<anonymous> (/var/app/current/node_modules/@tensorflow/tfjs-node/dist/index.js:10:9)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
Prod: App listening to 8081....
Press Ctrl+C to quit.

============================
Hi there 👋. Looks like you are running TensorFlow.js in Node.js. To speed things up dramatically, install our node backend, which binds to TensorFlow C++, by running npm i @tensorflow/tfjs-node, or npm i @tensorflow/tfjs-node-gpu if you have CUDA. Then call require('@tensorflow/tfjs-node'); (-gpu suffix for CUDA) at the start of your program. Visit https://github.com/tensorflow/tfjs-node for more details.
============================
@willoughby
Copy link

Did you resolve this ?

@bengrunfeld
Copy link
Author

@willoughby Unfortunately not. As a result, I had to switch to Tulind, which had its own set of errors with AWS EB, but I was able to solve those.

@anandanand84
Copy link
Owner

Tensorflow removed in 3.0. It should work now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants