leon-ai / leon

🧠 Leon is your open-source personal assistant.
https://getleon.ai
MIT License
15.42k stars 1.27k forks source link

when I run 'leon start' it shows 'Error: You should have at least one instance.' #457

Open prashantsingh2408 opened 1 year ago

prashantsingh2408 commented 1 year ago
└─$ leon start                 
Error: You should have at least one instance.

Specs

npm run check               

> leon@1.0.0-beta.8+dev check
> ts-node scripts/check.js

.: CHECKING :.
ℹ  Leon version
✅ 1.0.0-beta.8+dev

ℹ  Environment
✅ Total RAM: 7.57 GB
✅ {"type":"Linux","platform":"linux","arch":"x64","cpus":8,"release":"6.0.0-kali6-amd64","osName":"Linux 6.0","distro":{"os":"linux","dist":"Debian","release":"2022.4","codename":"kali-rolling"}}                                                                                                                                          

ℹ  node --version
✅ v18.13.0

ℹ  npm --version
✅ 9.2.0

✅ Python bridge version: 1.0.0
ℹ  Executing a skill...
ℹ  bridges/python/dist/linux-x86_64/leon-python-bridge "/home/pc/leon/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": ["46"], "speech": "46", "core": {}, "options": {}}}                                                                                                    
ℹ  Skill execution time: 368ms

✅ TCP server version: 1.0.0
ℹ  Starting the TCP server...
ℹ  tcp_server/dist/linux-x86_64/leon-tcp-server en
✅ The TCP server can successfully start
ℹ  TCP server startup time: 8249ms

ℹ  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
✅ Start the TCP server
⚠  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

it should run

Actual Behavior

Error: You should have at least one instance.

How Do We Reproduce?

  1. clone the repo
  2. then run these commnads
    npm install --global @leon-ai/cli
    leon create birth
    exec $SHELL
    leon start
theoludwig commented 1 year ago

Hello! :wave: Thanks for your report!

You don't need to clone the repo if you use the CLI. Can you provide more information, please? OS used? Node.js/npm versions used? Output of leon create birth? Can you try to use:

npm install --global @leon-ai/cli@beta
leon create birth --develop
leon start