javascriptdata / danfojs

Danfo.js is an open source, JavaScript library providing high performance, intuitive, and easy to use data structures for manipulating and processing structured data.
https://danfo.jsdata.org/
MIT License
4.78k stars 209 forks source link

Can not install danfo js (mac m1) #529

Open riekusr opened 1 year ago

riekusr commented 1 year ago

`npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 1 npm ERR! path /Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node npm ERR! command failed npm ERR! command sh -c -- node scripts/install.js npm ERR! CPU-darwin-3.21.1.tar.gz npm ERR! https://storage.googleapis.com/tf-builds/libtensorflow_r2_7_darwin_arm64_cpu.tar.gz npm ERR! node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@1.0.9 npm ERR! node-pre-gyp info using node@16.17.1 | darwin | arm64 npm ERR! node-pre-gyp info check checked for "/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node" (not found) npm ERR! node-pre-gyp http GET https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.21.1/CPU-darwin-3.21.1.tar.gz npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.21.1/CPU-darwin-3.21.1.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for @tensorflow/tfjs-node@3.21.1 and node@16.17.1 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.21.1/CPU-darwin-3.21.1.tar.gz npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.1.0 npm ERR! gyp info using node@16.17.1 | darwin | arm64 npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.1.0 npm ERR! gyp info using node@16.17.1 | darwin | arm64 npm ERR! gyp info find Python using Python version 3.10.1 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3" npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/riekus/Library/Caches/node-gyp/16.17.1/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/riekus/Library/Caches/node-gyp/16.17.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/riekus/Library/Caches/node-gyp/16.17.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.1.0 npm ERR! gyp info using node@16.17.1 | darwin | arm64 npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! clang: error: no such file or directory: 'Clients/MAN/MAN' npm ERR! clang: error: no such file or directory: 'Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node/deps/include' npm ERR! make: *** [Release/obj.target/tfjs_binding/binding/tfjs_backend.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error:make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Darwin 21.4.0 npm ERR! gyp ERR! command "/usr/local/bin/node" "/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node" "--module_name=tfjs_binding" "--module_path=/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node/lib/napi-v8" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=8" "--node_napi_label=napi-v8" npm ERR! gyp ERR! cwd /Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node npm ERR! gyp ERR! node -v v16.17.1 npm ERR! gyp ERR! node-gyp -v v9.1.0 npm ERR! gyp ERR! not ok npm ERR! node-pre-gyp ERR! build error npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node --module_name=tfjs_binding --module_path=/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node/lib/napi-v8 --napi_version=8 --node_abi_napi=napi --napi_build_version=8 --node_napi_label=napi-v8' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess. (/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1093:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) npm ERR! node-pre-gyp ERR! System Darwin 21.4.0 npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd /Users/riekus/Documents/Welisa Clients/MAN/MAN Project/Graydon/Analysis/node_modules/danfojs-node/node_modules/@tensorflow/tfjs-node npm ERR! node-pre-gyp ERR! node -v v16.17.1 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9 npm ERR! node-pre-gyp ERR! not ok npm ERR! Downloading libtensorflow npm ERR! npm ERR! Building TensorFlow Node.js bindings

npm ERR! A complete log of this run can be found in: npm ERR! /Users/riekus/.npm/_logs/2022-12-07T06_41_31_192Z-debug-0.log    ~/Doc/W/M/MAN P/G/Analysis   1 ✘  19s   07:41:49 

riekusr commented 1 year ago

I was not able to install danfoJS due to Tensorflow installation failing, tried some solutions on google but no resolve. I now resorted to copying an older project and use that for some data analysis.