-
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
[email protected] install fails on Windows machine #7341
Comments
I got the same error. I think this is because https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.2.0/CPU-windows-4.2.0.zip doesn't exist. I went to https://storage.googleapis.com/tf-builds/ to see what binaries exist and searched for The workaround I had to do to get this working is to just use the older version # save-exact flag so we don't allow any other version installed until correct binary is uploaded to tf-builds
npm install --save-exact @tensorflow/[email protected] |
@kevo1ution I ran into the same issue and noticed the link for version 4.2.0 for windows didn't exist. I didn't think to install an older version. Thanks for sharing! |
Hi, @enyineer Apologize for the delayed response and I checked this link and Hi, @pyu10055 Do you have any update about |
I still have the same error (I think) - using npm install --save-exact @tensorflow/[email protected] `npm ERR! code 1 npm ERR! A complete log of this run can be found in: C:\Users\tobia\AppData\Local\npm-cache_logs\2023-09-10T09_33_52_091Z-debug-0.log` I dont use any antivirus software or other stuff like that |
Having the same issue
Would love some additional information on this error. |
Same, Win11. The directories exist, as do the file |
Actually it is because the napi-v9 folder in libs does not exist and doesn't have a bindings file |
|
|
Hi, @TobCraft3521, @amacsmith , @georgzoeller, @Iust1n2 Apologize for the delayed response and I see you're using the Meanwhile, our developer team will try to solve this issue with latest version of |
Hi, @TobCraft3521, @georgzoeller , @amacsmith, @Iust1n2 I apologize for the delayed response and I'm able to install I would request you to please give it try from your end and let us know is it working as expected or not with Node.js versions If you face any issue while installing @enyineer, You also please give it try and let us know, is it working as expected. Thank you for your understanding and patience. |
Alright @gaikwadrahul8 , that's great, but I need the support of the latest version of NodeJS, so, is there an other way to solve this problem, please? |
My problem on windows was that My fix was to make sure that the directory I'm solving the copy issue with this patch(Edit: my patch was wrong) diff --git a/scripts/deps-stage.js b/scripts/deps-stage.js
index 31c8dc397a993103cf0d055c0705fb6d93a5deda..75b69387e231b07a1f5e8aac065d685f7ad5dde8 100644
--- a/scripts/deps-stage.js
+++ b/scripts/deps-stage.js
@@ -22,6 +22,7 @@ const copy = util.promisify(fs.copyFile);
const os = require('os');
const rename = util.promisify(fs.rename);
const symlink = util.promisify(fs.symlink);
+const mkdir = util.promisify(fs.mkdir);
const {
depsLibTensorFlowFrameworkPath,
depsLibTensorFlowPath,
@@ -57,6 +58,7 @@ async function symlinkDepsLib() {
throw new Error('Destination path not supplied!');
}
try {
+ await mkdir(path.dirname(destLibTensorFlowPath), {recursive: true});
await symlink(
path.relative(
path.dirname(destLibTensorFlowPath), depsLibTensorFlowPath),
|
Fix a problem with the installation on windows. My problem on windows was that `./lib/napi-v9` directory didn't exist and `./scripts/deps-stage.js` on line **60** needed the path to symlink or copy the dll. My fix was to make sure that the directory `napi-v9` exists with: `await fs.mkdir(path.dirname(destLibTensorFlowPath), {recursive: true})`; I'm solving the copy issue with this code.
* Fix for windows installation #7341 Fix a problem with the installation on windows. My problem on windows was that `./lib/napi-v9` directory didn't exist and `./scripts/deps-stage.js` on line **60** needed the path to symlink or copy the dll. My fix was to make sure that the directory `napi-v9` exists with: `await fs.mkdir(path.dirname(destLibTensorFlowPath), {recursive: true})`; I'm solving the copy issue with this code. * Fix fs.mkdir usage in deps-stage.js
I have the same issue. Dll for windows in located in napi-v9 folder but binding in napi-v8. And when I load the tfjs-node node searches in napi-v8. So coping from napi-v9 to napi-v8 resolves the issue. |
System information
When installing tfjs-node ^4.2.0 node-gyp fails to download the prebuilt binaries for napi-v8:
https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.2.0/CPU-linux-4.2.0.tar.gz
exists, buthttps://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.2.0/CPU-windows-4.2.0.zip
doesn't.Command: yarn add @tensorflow/tfjs-node
Any other info / logs
The text was updated successfully, but these errors were encountered: