question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying hard to install tfjs-node-gpu on Windows 10

See original GitHub issue

Using python2.7 Installed windows utilities

Stuck here:

ENOENT 'C:\Projects\tsflow\node_modules\@tensorflow\tfjs-node-gpu\build\Release\tensorflow.dll' 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.3 | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  deps-stage
  (node:9872) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, rename 'C:\Projects\tsflow\node_modules\@tensorflow\tfjs-node-gpu\deps\lib\tensorflow.dl
  l' -> 'C:\Projects\tsflow\node_modules\@tensorflow\tfjs-node-gpu\build\Release\tensorflow.dll'
  (node:9872) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rej
  ecting a promise which was not handled with .catch(). (rejection id: 1)
  (node:9872) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process
   with a non-zero exit code.
  generate_def
  fs.js:114
      throw err;
      ^

CUSTOMBUILD : error : ENOENT: no such file or directory, open 'C:\Projects\tsflow\node_modules\@tensorflow\tfjs-node-gpu\build\Release\tensorflow.dll' [C:\Projects\tsflow\node_mo
dules\@tensorflow\tfjs-node-gpu\build\tfjs_binding.vcxproj]
      at Object.openSync (fs.js:438:3)
      at Object.readFileSync (fs.js:343:35)
      at files.map (C:\Projects\tsflow\node_modules\@tensorflow\tfjs-node-gpu\scripts\generate_defs.js:23:40)
      at Array.map (<anonymous>)
      at Object.<anonymous> (C:\Projects\tsflow\node_modules\@tensorflow\tfjs-node-gpu\scripts\generate_defs.js:23:23)
      at Module._compile (internal/modules/cjs/loader.js:701:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
      at Module.load (internal/modules/cjs/loader.js:600:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
      at Function.Module._load (internal/modules/cjs/loader.js:531:3)
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\Pc\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Pc\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd C:\Projects\tsflow\node_modules\@tensorflow\tfjs-node-gpu
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok```

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
theodorDiaconucommented, May 18, 2019

I am now happily using 0.3.2. The experience to get it working was absolutely awful. Still I was expecting better improvements node vs node-gpu. For a sample set that I used the difference is 16000ms vs 8000ms. So almost twice. Not bad but was expecting 10x.

0reactions
kangyizhangcommented, Aug 21, 2019

With the latest tfjs-node/tfjs-node-gpu package, we are shipping pre-compile addon and there should be no compilation on your machine. This issue should have been fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how do i install tensorflow-node on Windows 10?
1 Answer 1 · make sure you have package.json file in your directory that at least looks like this: · make sure you...
Read more >
Appendix A. Installing tfjs-node-gpu and its dependencies
js (tfjs-node-gpu) in Node.js, you need to have CUDA and CuDNN installed on your machine. First of all, the machine should be equipped...
Read more >
Setup and use CUDA and TensorFlow in Windows Subsystem ...
Install Docker and Nvidia container toolkit · Run CUDA containers · Troubleshoot.
Read more >
Use Coral Edge TPUs to run TFlite models in Node with ...
Run TensorFlow Lite models in Node.js and accelerate them with Coral Edge TPUs and WebNN.
Read more >
Announcing support for native SavedModel execution in Node.js
No conversion needed to the TensorFlow.js model format when deploying models in Node.js (with tfjs-node and tfjs-node-gpu). Native execution means that any ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found