-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
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
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): windows 10
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
- TensorFlow.js installed from (npm or script link): yarn
- TensorFlow.js version: not install success
- CUDA/cuDNN version: not install cuda yet
Describe the problem
Provide the exact sequence of commands / steps that you executed before running into the problem
yarn add @tensorflow/tfjs-node-gpu
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
(TraeAI-5) D:\code\lab\lab-tensorflow [1:1] $ yarn add @tensorflow/tfjs-node-gpu
yarn add v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning @tensorflow/tfjs-node-gpu > [email protected]: Rimraf versions prior to v4 are no longer supported
warning @tensorflow/tfjs-node-gpu > @mapbox/node-pre-gyp > [email protected]: Rimraf versions prior to v4 are no longer supported
warning @tensorflow/tfjs-node-gpu > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning @tensorflow/tfjs-node-gpu > @mapbox/node-pre-gyp > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning @tensorflow/tfjs-node-gpu > @mapbox/node-pre-gyp > [email protected]: This package is no longer supported.
warning @tensorflow/tfjs-node-gpu > rimraf > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning @tensorflow/tfjs-node-gpu > @mapbox/node-pre-gyp > npmlog > [email protected]: This package is no longer supported.
warning @tensorflow/tfjs-node-gpu > @mapbox/node-pre-gyp > npmlog > [email protected]: This package is no longer supported.
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@tensorflow/tfjs > @tensorflow/[email protected]" has unmet peer dependency "seedrandom@^3.0.5".
[4/4] Building fresh packages...
[2/2] ⠂ @tensorflow/tfjs-node-gpu
error D:\code\lab\lab-tensorflow\node_modules@tensorflow\tfjs-node-gpu: Command failed.
Exit code: 1
Command: node scripts/install.js gpu download
Arguments:
Directory: D:\code\lab\lab-tensorflow\node_modules@tensorflow\tfjs-node-gpu
Output:
GPU-windows-4.22.0.zip
-
Downloading libtensorflow
https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-windows-x86_64-2.9.1.zip -
Building TensorFlow Node.js bindings
node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
(node:59604) [DEP0040] DeprecationWarning: Thepunycodemodule is deprecated. Please use a userland alternative instead.
(Usenode --trace-deprecation ...to show where the warning was created)
node-pre-gyp info check checked for "D:\code\lab\lab-tensorflow\node_modules@tensorflow\tfjs-node-gpu\lib\napi-v8\tfjs_binding.node" (not found)
node-pre-gyp http GEThttps://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.22.0/GPU-windows-4.22.0.zip
node-pre-gyp http download proxy agent configured using: "http://127.0.0.1:7890"
node-pre-gyp ERR! install response status 404 Not Found onhttps://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.22.0/GPU-windows-4.22.0.zip
node-pre-gyp WARN Pre-built binaries not installable for @tensorflow/[email protected] and [email protected] (node-v127 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 404 Not Found onhttps://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.22.0/GPU-windows-4.22.0.zip
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack Error: spawn EINVAL
node-pre-gyp ERR! stack at ChildProcess.spawn (node:internal/child_process:420:11)
node-pre-gyp ERR! stack at Object.spawn (node:child_process:753:9)
node-pre-gyp ERR! stack at module.exports.run_gyp (D:\code\lab\lab-tensorflow\node_modules@mapbox\node-pre-gyp\lib\util\compile.js:80:18)
node-pre-gyp ERR! stack at build (D:\code\lab\lab-tensorflow\node_modules@mapbox\node-pre-gyp\lib\build.js:41:13)
node-pre-gyp ERR! stack at self.commands. [as build] (D:\code\lab\lab-tensorflow\node_modules@mapbox\node-pre-gyp\lib\node-pre-gyp.js:86:37)
node-pre-gyp ERR! stack at run (D:\code\lab\lab-tensorflow\node_modules@mapbox\node-pre-gyp\lib\main.js:81:30)
node-pre-gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
node-pre-gyp ERR! System Windows_NT 10.0.19045
node-pre-gyp ERR! command "D:\nodejs\node.exe" "D:\code\lab\lab-tensorflow\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ERR! cwd D:\code\lab\lab-tensorflow\node_modules@tensorflow\tfjs-node-gpu
node-pre-gyp ERR! node -v v22.12.0
node-pre-gyp ERR! node-pre-gyp -v v1.0.9 @