-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
tfjs-node invalid installation/setup no such file or directory #7881
Comments
Hi, @digimbyte Thank you for bringing this issue to our attention and Please refer this similar issue #7341 and this comment, at the moment we don't have pre-built-binary for windows machine for latest version and last supported version is At the moment workaround is to use older version If issue still persists with
|
I'm not a big brain when it comes to this stuff, for now I'll use the workaround. hopefully that gets fixed, even though my server is running Debian, working on Windows is just easier. perhaps some sort of catch can be implemented where fallback files are requested via user prompt or a secondary step. |
unfortunately, it still failed with 3.18.0
|
Hi, @digimbyte I see currently you're using the Please refer this official documentation for TensorFlow.js Node.js bindings Windows troubleshooting and
Could you please try above instructions with |
incrementally I rolled back the versions with the following:
using
running command:
seems its failing on creation of the symbolic link to napi-v9, is it supposed to be v8? as earlier I saw that folder being generated |
I did some version testing, earliest version I can install is 3.1.0 but 3.2.0 yields the same error:
|
Hi, @digimbyte Thank you for doing different versions testing from your end and good to hear that it's working with If you help us with exact steps you followed to work Thank you! |
Hi, @digimbyte Thank you for helping us with above detailed details and will dig more into this issue. It's good to hear that it's working with |
I have a similar problem. After downgrading to nodejs version 18.17.0 and using
I have no idea what this means. The I have resolved this using this comment. The problem was the missing |
I had been struggling with the same error, and I managed to resolve it. My system configuration is as follows: Windows: 11 Here's what I did to fix the issue: Installed node-gyp globally:
Installed a specific version of @tensorflow/tfjs-node to avoid compatibility issues:
|
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
Running what @seongho-98 said installs fine, but when running a empty project just with
it always errors with
|
Hi, @JijaProGamer Apologize for the delayed response, could you please try below workaround, let us know is it resolving your issue or not ? Please refer this comment where user was facing the similar issue and below solution worked so I would request you to please give it try from your end once.
If issue still persists please let us know with error log, we'll try to investigate this issue further? Thank you! |
Tried it, but still doesnt work. I read that tfjs-node required AVX processors, so that might be the problem. |
to clarify: at the moment, I am using a script that copies the dll file on build/run so it is available in my docker image. |
Hi, @JijaProGamer Apologize for the delayed response and Yes, |
Will it ever be rewritten better to support non-AVX CPUs? Lower end AMD CPUS and Celeron/Pentium Intel CPUs, along with any ARM CPU have no AVX, making tfjs-node unusable, and tfjs prints a non stoppable warning when trying to use it |
try the python version? |
Something I found to work was renaming the |
I want to share my success installation with
node rename.js
import fs from 'fs'
// const fs = require('fs')
while (true) {
try {
// change tfjs-node-gpu to tfjs-node
fs.renameSync('./node_modules/@tensorflow/tfjs-node-gpu/lib/napi-v8', './node_modules/@tensorflow/tfjs-node-gpu/lib/napi-v9')
break
} catch (e) {
}
}
console.log('done')
PS: Installation failed because of no target folder |
I have a similar problem Node.js v20.11.1 when running the script it gives an error Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: D:\develop\nnet\node_serv\node_modules@tensorflow\tfjs-node\lib\napi-v7\tfjs_binding.node. the rebuild is successful, but the error does not disappear node_modules@tensorflow\tfjs-node\lib\napi-v7 Perhaps someone can tell me what to do? |
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
npm
Describe the problem
Installation stalls on ENOENT: no such file or directory
Output:
Provide the exact sequence of commands / steps that you executed before running into the problem
npm install @tensorflow/tfjs-node@latest
Any other info / logs
Seems that its unable to extract/setup the file and dll in its intended structure, following the folder behavior, I noticed
./lib/napi-v8
being created rather than./lib/napi-v9
and the dll files were not present in a visible manor.output log: Paste Bin
The text was updated successfully, but these errors were encountered: