Skip to content
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

[Feature]: Please recommend node/python version to use with these apps #8354

Open
phuongnd08 opened this issue Nov 13, 2024 · 2 comments
Open
Labels
libraries Impacts the Libraries Stale triage In need of triage

Comments

@phuongnd08
Copy link

phuongnd08 commented Nov 13, 2024

Library name

@ledgerhq/hw-app-btc

Describe your feature request

Please recommend versions combination of nodejs/python to work with the apps as I tried multiple combinations on Apple Silicon Mac but none really compile the latest hw-app-btc package

@phuongnd08 phuongnd08 added libraries Impacts the Libraries triage In need of triage labels Nov 13, 2024
@phuongnd08
Copy link
Author

For example, I use

python 3.10.12
nodejs 18.17.1

Getting this:

npm ERR! gyp info find Python using Python version 3.10.12 found at "/Users/phuongnd08/.asdf/installs/python/3.10.12/bin/python3"
npm ERR! gyp info spawn /Users/phuongnd08/.asdf/installs/python/3.10.12/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/phuongnd08/.asdf/installs/nodejs/18.17.1/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/phuongnd08/code/gangpay/node_modules/node-hid/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/phuongnd08/.asdf/installs/nodejs/18.17.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/phuongnd08/Library/Caches/node-gyp/18.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/phuongnd08/Library/Caches/node-gyp/18.17.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/phuongnd08/.asdf/installs/nodejs/18.17.1/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/phuongnd08/Library/Caches/node-gyp/18.17.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/phuongnd08/code/gangpay/node_modules/node-hid',
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 spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/HID.cc:71:5: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
npm ERR!     throw(JSException);
npm ERR!     ^~~~~~~~~~~~~~~~~~
npm ERR! ../src/HID.cc:71:5: note: use 'noexcept(false)' instead
npm ERR!     throw(JSException);
npm ERR!     ^~~~~~~~~~~~~~~~~~
npm ERR!     noexcept(false)
npm ERR! ../src/HID.cc:74:5: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
npm ERR!     throw(JSException);
npm ERR!     ^~~~~~~~~~~~~~~~~~
npm ERR! ../src/HID.cc:74:5: note: use 'noexcept(false)' instead
npm ERR!     throw(JSException);
npm ERR!     ^~~~~~~~~~~~~~~~~~
npm ERR!     noexcept(false)
npm ERR! ../src/HID.cc:156:3: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
npm ERR!   throw(JSException)
npm ERR!   ^~~~~~~~~~~~~~~~~~
npm ERR! ../src/HID.cc:156:3: note: use 'noexcept(false)' instead
npm ERR!   throw(JSException)
npm ERR!   ^~~~~~~~~~~~~~~~~~
npm ERR!   noexcept(false)
npm ERR! ../src/HID.cc:167:3: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec]
npm ERR!   throw(JSException)
npm ERR!   ^~~~~~~~~~~~~~~~~~
npm ERR! ../src/HID.cc:167:3: note: use 'noexcept(false)' instead
npm ERR!   throw(JSException)
npm ERR!   ^~~~~~~~~~~~~~~~~~
npm ERR!   noexcept(false)
npm ERR! ../src/HID.cc:612:31: error: too few arguments to function call, expected 3, have 2
npm ERR!   node::AtExit(deinitialize, 0);
npm ERR!   ~~~~~~~~~~~~                ^
npm ERR! /Users/phuongnd08/Library/Caches/node-gyp/18.17.1/include/node/node.h:1111:18: note: 'AtExit' declared here
npm ERR! NODE_EXTERN void AtExit(Environment* env,
npm ERR!                  ^
npm ERR! 5 errors generated.
npm ERR! make: *** [Release/obj.target/HID/src/HID.o] Error 1

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label, comment, or consider closing it.

@github-actions github-actions bot added the Stale label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries Impacts the Libraries Stale triage In need of triage
Projects
None yet
Development

No branches or pull requests

1 participant