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

[Windows] missing 'tfjs_binding.node' module error #13

Open
Aircoholic opened this issue Jan 22, 2022 · 0 comments
Open

[Windows] missing 'tfjs_binding.node' module error #13

Aircoholic opened this issue Jan 22, 2022 · 0 comments

Comments

@Aircoholic
Copy link

Aircoholic commented Jan 22, 2022

I've written about this issue in the other open Windows-Issue, but maybe my problem was too unrelated or something, so after getting no reply, I thought maybe a new threat would have a better chance to be seen.

What I've tried so far:

making sure npm is installed correctly, which seems to be not quite so trivial on windows. No success.

My laptop just go a fresh new Windows 10 install (let's just say it was about time...), now I'm running: Windows 10 Home 21H2 (Build 19044), Ableton Live 10.1.42 and Max 8.1.11

Again, checking that npm is running correctly.

Then, in Max (or Max4live), loading up RhythmVAE, pressing "script npm install" gives a green light in the node.script debug tool.

When I press "script start", first it tells me, everything is running smooth for 2-3 seconds, before I get the error message below.

node: message Unable to launch process
node: details The Node.js native addon module (tfjs_binding.node) can not be found at path: C:\Users\kuhn-\Documents\Ableton\User Library\M4L\RhythmVAE_M4L-0.72\node_modules@tensorflow\tfjs-node\lib\napi-v5\tfjs_binding.node.
Please run command 'npm rebuild @tensorflow/tfjs-node build-addon-from-source' to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue.
node: stack Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: C:\Users\kuhn-\Documents\Ableton\User Library\M4L\RhythmVAE_M4L-0.72\node_modules@tensorflow\tfjs-node\lib\napi-v5\tfjs_binding.node.
Please run command 'npm rebuild @tensorflow/tfjs-node build-addon-from-source' to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue.
at Object. (C:\Users\kuhn-\Documents\Ableton\User Library\M4L\RhythmVAE_M4L-0.72\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Object.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.Module._load (C:\Program Files\Cycling '74\Max 8\resources\packages\Node for Max\source\lib\nsRunner.js:67:24)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object. (C:\Users\kuhn-\Documents\Ableton\User Library\M4L\RhythmVAE_M4L-0.72\rhythmvae.js:5:12)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
node: code 6

The reported module is indeed missing from the named folder.

I've downloaded the tfjs-repo and did run 'npm rebuild @tensorflow/tfjs-node build-addon-from-source' as the error message suggested.

The tfjs_binding.node module is back in the right location now. In Max, when I press "script npm install" I get the green confirmation in the debug tool, but when I press "script start", I get the following error message, despite the apparently missing module is now in the right location.

I give up! I want to use your pluging really bad, because it would help me immensely with my work on another project and would give it some amazing new twist, but I don't even know where to look for solutions to this anymore. Plus, I've now spend a not insgnificant amount of time on this and thus far, it was not worth it, so I just have to stop my attempts to solve this problem.
I'm no programmer (just a musician aspiring to be a sound artist) and have no experience with MachineLearning etc. so I'm way outside my paygrade already. I'm not even sure if I'm looking in the right places, because I don't understand enough of the whole matter to get an idea what could cause such an issue. Maybe it's something super trivial that I overlooked or some small step I didn't see or do. Any help solving this issue would still be greatly appreciated, since your plugin is one of the most exciting I've seen in years and I would love to use it.

node: stack Error: The specified module could not be found.
\?\C:\Users\kuhn-\Documents\Ableton\User Library\M4L\RhythmVAE_M4L-0.72\node_modules@tensorflow\tfjs-node\lib\napi-v5\tfjs_binding.node
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Object.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.Module._load (C:\Program Files\Cycling '74\Max 8\resources\packages\Node for Max\source\lib\nsRunner.js:67:24)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object. (C:\Users\kuhn-\Documents\Ableton\User Library\M4L\RhythmVAE_M4L-0.72\node_modules@tensorflow\tfjs-node\dist\index.js:58:16)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)

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

1 participant