leon
leon copied to clipboard
Error: Cannot find module '/root/.leon/node_modules/stt/lib/binding/v1.1.0/linux-x64/node-v108/stt.node'
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