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

I cant install Leon ELIFECYCLE ERROR (Node.js 12) #85

Closed
NT-me opened this issue Apr 27, 2019 · 11 comments
Closed

I cant install Leon ELIFECYCLE ERROR (Node.js 12) #85

NT-me opened this issue Apr 27, 2019 · 11 comments
Labels
bug Indicates an unexpected problem or unintended behavior. improvement Indicates improvements without being features.
Milestone

Comments

@NT-me
Copy link

NT-me commented Apr 27, 2019

Specs

  • Leon version: beta 2 1.0.0
  • OS (or browser) version: Ubuntu (the last at this day)
  • Node.js version: 12.0.0
  • Complete "npm run check" output:
.: CHECKING :.

➡ /bin/sh -c node --version
✔ v12.0.0

➡ /bin/sh -c npm --version
✔ 6.9.0

➡ /bin/sh -c pipenv --version
✔ pipenv, version 2018.11.26

➡ /bin/sh -c pipenv --where
✔ 

➡ /bin/sh -c pipenv run python --version


#
# Fatal error in , line 0
# Check failed: U_SUCCESS(status).
#
#
#
#FailureMessage Object: 0x7ffec4ea0e10Illegal instruction (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 132
npm ERR! leon@1.0.0-beta.2 check: `babel-node scripts/run-check.js`
npm ERR! Exit status 132
npm ERR! 
npm ERR! Failed at the leon@1.0.0-beta.2 check script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2019-04-27T18_27_10_795Z-debug.log
  • (optional) Leon package version: No package

Expected Behavior

I ran npm install and it's crash during the installation :/

The error is :

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.18.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the grpc@1.18.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2019-04-27T18_25_03_761Z-debug.log
@NT-me NT-me added the bug Indicates an unexpected problem or unintended behavior. label Apr 27, 2019
@louistiti
Copy link
Member

louistiti commented Apr 28, 2019

Hello @gnouf1,

Thanks for reporting!

Indeed, Leon fails while installing with Node.js 12. It seems to be due to gRPC, they are working on it now according to this issue grpc/grpc-node#834.

In the meantime, you can switch back to Node.js 10 or Node.js 11.

@louistiti
Copy link
Member

@louistiti louistiti added this to the 1.0.0-beta.3 milestone Apr 28, 2019
@louistiti louistiti changed the title I cant install Leon ELIFECYCLE ERROR I cant install Leon ELIFECYCLE ERROR (Node.js 12) Apr 28, 2019
@NT-me
Copy link
Author

NT-me commented Apr 28, 2019

Thanks you !
It's fix now !

@NT-me NT-me closed this as completed Apr 28, 2019
@louistiti
Copy link
Member

I let the issue open until it is fixed under Node.js 12.

@louistiti louistiti reopened this Apr 28, 2019
@NT-me
Copy link
Author

NT-me commented Apr 28, 2019

For change node.js version i install nvm
And :

nvm install 11.0.0
nvm use 11 

@louistiti
Copy link
Member

For reference, the dependencies tree regarding gRPC on Leon is as followed: @google-cloud/speech > google-gax > grpc.
@google-cloud/speech is used for the folks who want to use Google as speech-to-text provider.

In the meantime I updated the docs (cf. c6cc807; leon-ai/docs.getleon.ai@54790af) at the prerequisites sections.

@louistiti
Copy link
Member

louistiti commented Apr 30, 2019

Quick update:

  • grpc released the Node.js 12 support with the 1.20.2.
  • google-gax already bumped the gRPC version. We need to wait until they publish it on npm.
  • Then we'll need to wait for nodejs-speech to upgrade google-gax and publish it on npm.

@louistiti
Copy link
Member

louistiti commented May 3, 2019

New update:

  • google-gax published on npm.
  • nodejs-speech bumped google-gax to 0.26.0. We're now waiting for them to publish on npm.

@louistiti
Copy link
Member

New update:

  • nodejs-speech released their 3.0.0 on npm and that supports Node.js 12.
  • However, DeepSpeech does not support Node.js 12 on its 0.4.1 version and the DeepSpeech 0.5.0 (which does support Node.js 12 cf. Add NodeJS v12 support mozilla/DeepSpeech#2073) one is still in alpha phase.

So now:

  • We need to wait for DeepSpeech to release their 0.5.0 version.

@louistiti
Copy link
Member

@louistiti louistiti added the improvement Indicates improvements without being features. label Jun 18, 2019
@louistiti
Copy link
Member

Mozilla released DeepSpeech 0.5.0 recently. I've just made the upgrade b9f4079.

Now Leon also supports Node.js 12 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior. improvement Indicates improvements without being features.
Projects
None yet
Development

No branches or pull requests

2 participants