leon-ai / leon

🧠 Leon is your open-source personal assistant.

Home Page:https://getleon.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

geekabhinav007 opened this issue · 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...

> leon@1.0.0-beta.7 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...

> leon@1.0.0-beta.7 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