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

Subprocess SnipsNLU went defunct #629

Open
oliverrahner opened this issue Jan 14, 2022 · 3 comments
Open

Subprocess SnipsNLU went defunct #629

oliverrahner opened this issue Jan 14, 2022 · 3 comments

Comments

@oliverrahner
Copy link

I just set up a fresh alice environment. After starting, I noticed that the SnipsNLU service is constantly "crashing".

After investigating, I found that the snips-nlu binary is being called like this:

snips-nlu -a /home/pi/ProjectAlice/assistant --mqtt localhost:1883

This does not seem to be the right sytnax to call it? When trying it manually, I receive the following:

# snips-nlu -a /home/pi/ProjectAlice/assistant --mqtt localhost:1883
usage: python -m snips_nlu [-h] [-v] command [options ...] ...
python -m snips_nlu: error: argument command [options ...]: invalid choice: '/home/pi/ProjectAlice/assistant' (choose from 'generate-dataset', 'train', 'parse', 'download', 'download-all-languages', 'download-entity', 'download-language-entities', 'link', 'cross-val-metrics', 'train-test-metrics', 'version', 'model-version')

Am I missing something?

I am on stable and the unit has been set up using AliceCLI.

@oliverrahner
Copy link
Author

This happens because I have been starting alice with python main.py from inside the venv.
The venv contains its own bin/snips-nlu file which is a completely different one than /usr/bin/snips-nlu.
After manually removing venv/bin/snips-nlu, the error disappears.

@oliverrahner
Copy link
Author

... hitting "Train Assistant" in the Web-UI admin section, alice expects the other snips-nlu to be there?

[SnipsNlu] Error while training Snips NLU: error: Found argument 'train' which wasn't expected, or isn't valid in this context

USAGE:
    snips-nlu [FLAGS] [OPTIONS] [SUBCOMMAND]

For more information try --help

[Traceback]                         NoneType: None
[SnipsNlu]                          Snips NLU training failed
[Traceback]                         NoneType: None

@Psychokiller1888
Copy link
Member

Snips NLU vs Snips NLU... Yep... There's one to train, the other to do the work. And they had them named the same...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants