leon icon indicating copy to clipboard operation
leon copied to clipboard

Error: Cannot find module '/root/.leon/node_modules/stt/lib/binding/v1.1.0/linux-x64/node-v108/stt.node'

Open geekabhinav007 opened this issue 2 years ago â€ĸ 1 comments

Specs:

  • Leon version 1.0.0-beta.7
  • OS: UBUNTU 22.04 LTS
  • Node Version : v18.14.1
  • Command to check leon sudo pipenv run leon check
(python) (base) geek@g3:~/my-projects$ sudo pipenv run leon check
Loading .env environment variables...

> [email protected] check
> babel-node scripts/run-check.js

Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
⠋

.: CHECKING :.
â„šī¸  Leon version
✅ 1.0.0-beta.7

â„šī¸  node --version
✅ v18.14.1

â„šī¸  npm --version
✅ 9.6.1

â„šī¸  pipenv --version
✅ pipenv, version 2023.2.18

â„šī¸  pipenv --where
✅ /home/geek/my-projects/bridges/python

â„šī¸  pipenv run python --version
✅ Python 3.9.10

â„šī¸  pipenv run python bridges/python/main.py scripts/assets/intent-object.json
✅ {"domain": "leon", "skill": "random_number", "action": "run", "lang": "en", "utterance": "Give me a random number", "entities": [], "slots": {}, "output": {"type": "end", "codes": ["61"], "speech": "61", "core": {}, "options": {}}}

â„šī¸  Global resolvers NLP model state
✅ Found and valid

â„šī¸  Skills resolvers NLP model state
✅ Found and valid

â„šī¸  Main NLP model state
✅ Found and valid

â„šī¸  Amazon Polly TTS
âš ī¸  Amazon Polly TTS is not yet configured

â„šī¸  Google Cloud TTS/STT
âš ī¸  Google Cloud TTS/STT is not yet configured

â„šī¸  Watson TTS
âš ī¸  Watson TTS is not yet configured

â„šī¸  Offline TTS
âš ī¸  Cannot find bin/flite/flite. You can setup the offline TTS by running: "npm run setup:offline-tts"

â„šī¸  Watson STT
âš ī¸  Watson STT is not yet configured

â„šī¸  Offline STT
âš ī¸  Cannot find bin/coqui/huge-vocabulary.scorer. You can setup the offline STT by running: "npm run setup:offline-stt"


.: REPORT :.
â„šī¸  Here is the diagnosis about your current setup
✅ Run
✅ Run skills
✅ Reply you by texting
âš ī¸  Amazon Polly text-to-speech
âš ī¸  Google Cloud text-to-speech
âš ī¸  Watson text-to-speech
âš ī¸  Offline text-to-speech
âš ī¸  Google Cloud speech-to-text
âš ī¸  Watson speech-to-text
âš ī¸  Offline speech-to-text

✅ Hooray! Leon can run correctly
â„šī¸  If you have some yellow warnings, it is all good. It means some entities are not yet configured

Expected Behavior

Offline stt can work properly

Actual Behavior

when I run sudo pipenv run leon start following error occur:

(python) (base) geek@g3:~/my-projects$ sudo pipenv run leon start
Loading .env environment variables...

> [email protected] start
> cross-env LEON_NODE_ENV=production node ./server/dist/index.js



.: TCP CLIENT :.
✅ New instance


.: INITIALIZATION :.
✅ The current env is production
✅ The current version is 1.0.0-beta.7
✅ The current time zone is Asia/Calcutta
✅ Collaborative logger enabled


.: BRAIN :.
✅ New instance


.: CONVERSATION :.
✅ New instance


.: NLU :.
✅ New instance


.: NLU :.


.: NLU :.


.: NLU :.
✅ Global resolvers NLP model loaded
✅ Skills resolvers NLP model loaded
✅ Main NLP model loaded


.: NER :.
✅ New instance


.: INITIALIZATION :.
✅ Server is available at http://localhost:1337


.: TCP CLIENT :.
✅ Connected to the TCP server tcp://0.0.0.0:1342


.: CLIENT :.
✅ Connected
â„šī¸  Type: webapp
â„šī¸  Socket id: iSZOgKMrGtMKHVWsAAAB


.: BRAIN :.
✅ New instance


.: CONVERSATION :.
✅ New instance


.: NLU :.
✅ New instance


.: NLU :.


.: NLU :.


.: NLU :.
✅ Global resolvers NLP model loaded
✅ Skills resolvers NLP model loaded
✅ Main NLP model loaded


.: NER :.
✅ New instance


.: ASR :.
✅ New instance


.: STT :.
✅ New instance
â„šī¸  Initializing STT...
node:internal/modules/cjs/loader:1075
  const err = new Error(message);
              ^

Error: Cannot find module '/root/.leon/node_modules/stt/lib/binding/v1.1.0/linux-x64/node-v108/stt.node'
Require stack:
- /root/.leon/node_modules/stt/index.js
- /root/.leon/server/dist/stt/coqui-stt/parser.js
- /root/.leon/server/dist/stt/stt.js
- /root/.leon/server/dist/core/http-server/server.js
- /root/.leon/server/dist/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/root/.leon/node_modules/stt/index.js:24:17)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/root/.leon/node_modules/stt/index.js',
    '/root/.leon/server/dist/stt/coqui-stt/parser.js',
    '/root/.leon/server/dist/stt/stt.js',
    '/root/.leon/server/dist/core/http-server/server.js',
    '/root/.leon/server/dist/index.js'
  ]
}

Node.js v18.14.1
Error: Command failed with exit code 1: npm start

How Do We Reproduce?

Reproduce by running following command on node version 18.14.1 on UBUNTU 22.04 sudo pipenv run leon start

geekabhinav007 avatar Mar 10 '23 10:03 geekabhinav007