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

Use current software to build and run a full node #27

Closed
9034725985 opened this issue Aug 3, 2018 · 1 comment
Closed

Use current software to build and run a full node #27

9034725985 opened this issue Aug 3, 2018 · 1 comment

Comments

@9034725985
Copy link

Expected: npm install works with python3

Actual: npm install throws an error

[kus@dev hskd]$ npm install

> unbound@0.0.5 install /home/kus/hskd/node_modules/unbound
> node-gyp rebuild

gyp ERR! configure error 
gyp ERR! stack Error: Python executable "/usr/bin/python3" is v3.6.6, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at PythonFinder.failPythonVersion (/home/kus/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:501:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/home/kus/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:483:14)
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:279:7)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:249:5)
gyp ERR! System Linux 4.17.9-200.fc28.x86_64
gyp ERR! command "/home/kus/.nvm/versions/node/v10.8.0/bin/node" "/home/kus/.nvm/versions/node/v10.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/kus/hskd/node_modules/unbound
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unbound@0.0.5 (node_modules/unbound):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: unbound@0.0.5 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

audited 930 packages in 4.602s
found 0 vulnerabilities

Python3 is the CURRENT version of python.

nodejs/node-gyp#746 (comment)

Our upstream dependency gyp is Python 2 only, and as it's now EoL (Google won't be maintaining it) it's unlikely that it will be updated to support Python 3.

nodejs/node-gyp#1092

Do we need gyp? I'll go one step further, do we need node? Can we use something else please?

@9034725985 9034725985 changed the title Upgrade gyp to support python3 Use current software to build and run a full node Aug 3, 2018
@chjj
Copy link
Contributor

chjj commented Aug 3, 2018

Do we need gyp?

Unfortunately, yes. I agree, gyp is a disaster. The state of builds on node.js is a headache. Removing native dependencies is a long term goal though.

Pretty much every native dependency except for unbound and leveldb could use a web assembly backend instead of calling out to C++ (bcrypto for example -- I experimented in the past with an SIMD blake2 wasm impl. which rivaled the speed of the SSE reference implementation when compiled with gcc).

For now, we have to deal with gyp's python2 dependency.

do we need node?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants