Nothing work exept the clock


#1

Hello, I was curious about Snips so I tried installing it on my Rpi3.

I had a little bit of a hard time to install it but know it’s ok exept the only thing that work is when I ask for the time.

I did’nt wrote any apps yet, I have installed some from the store, weather, french radios, calculator, Wikipedia but I never have e response. Do I have something to do after I deployed the assistant for them to work ? Actions are installed in the /var/lib/snips/skills but everytime it end with:

[01:10:21] [Dialogue] session with id ‘9473bfd8-4fc5-4232-9278-f2ed0e7d21c9’ was ended on site default. The session was ended because one of the component didn’t respond in a timely manner

What did I need to do to make them work ?


#2

i bet if you check the /var/log/syslog there might be something like a python error about hermes-python missing

this is usually the problem most have

just install it using pip and you should be good to go


#3

On one hand you was right, it was missing. But on the other hand, it doesn’t solve my problem. And the syslog don’t give me more info than sam watch…

Here is the log of snips-skill-server restarting

janv. 11 03:37:55 snips systemd[1]: Stopping Snips Skill Server...
janv. 11 03:37:55 snips snips-skill-server[2775]: INFO:snips_skill_server_lib::runner            : was asked to stop, terminating childs before quitting...
janv. 11 03:37:55 snips systemd[1]: Stopped Snips Skill Server.
janv. 11 03:37:55 snips systemd[1]: Started Snips Skill Server.
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_heartbeat::cliconfig_ext: Heartbeat enabled
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: searching dir for actions: /var/lib/snips/skills/Snips-calculette
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/Snips-calculette/action-calclul-multiplication.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/Snips-calculette/action-calcul-addition.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/Snips-calculette/action-calcul-division.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/Snips-calculette/action-calcul-soustraction.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: searching dir for actions: /var/lib/snips/skills/Tealque.Wikipedia
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/Tealque.Wikipedia/action-Tealque-searchWikipedia-Tealque.Wikipedia.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: searching dir for actions: /var/lib/snips/skills/snips-skill-heure
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/snips-skill-heure/action-heure.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: searching dir for actions: /var/lib/snips/skills/louisros.radio
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/louisros.radio/action-louisros-play-louisros.radio.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/louisros.radio/action-louisros-setStation-louisros.radio.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/louisros.radio/action-louisros-stop-louisros.radio.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: found action "/var/lib/snips/skills/louisros.radio/action-louisros-volume-louisros.radio.py"
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: [Tealque-searchWikipedia-Tealque.Wikipedia][err]   File "./action-Tealque-searchWikipedia-Tealque.Wikipedia.py", line 45
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: [Tealque-searchWikipedia-Tealque.Wikipedia][err]     LANG = 'fr'
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: [Tealque-searchWikipedia-Tealque.Wikipedia][err]     ^
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner: [Tealque-searchWikipedia-Tealque.Wikipedia][err] IndentationError: unexpected indent
janv. 11 03:37:56 snips snips-skill-server[3818]: WARN:snips_skill_server_lib::handler::nosandbox: child Tealque-searchWikipedia-Tealque.Wikipedia has stopped with status `exit code: 1`
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : restarting action Tealque-searchWikipedia-Tealque.Wikipedia (restart_fails: 0)
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]   File "./action-Tealque-searchWikipedia-Tealque.Wikipedia.py", line 45
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]     LANG = 'fr'
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]     ^
janv. 11 03:37:56 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err] IndentationError: unexpected indent
janv. 11 03:37:57 snips snips-skill-server[3818]: WARN:snips_skill_server_lib::handler::nosandbox: child Tealque-searchWikipedia-Tealque.Wikipedia has stopped with status `exit code: 1`
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : restarting action Tealque-searchWikipedia-Tealque.Wikipedia (restart_fails: 1)
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]   File "./action-Tealque-searchWikipedia-Tealque.Wikipedia.py", line 45
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]     LANG = 'fr'
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]     ^
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err] IndentationError: unexpected indent
janv. 11 03:37:57 snips snips-skill-server[3818]: WARN:snips_skill_server_lib::handler::nosandbox: child Tealque-searchWikipedia-Tealque.Wikipedia has stopped with status `exit code: 1`
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : restarting action Tealque-searchWikipedia-Tealque.Wikipedia (restart_fails: 2)
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]   File "./action-Tealque-searchWikipedia-Tealque.Wikipedia.py", line 45
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]     LANG = 'fr'
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err]     ^
janv. 11 03:37:57 snips snips-skill-server[3818]: INFO:snips_skill_server_lib::runner            : [Tealque-searchWikipedia-Tealque.Wikipedia][err] IndentationError: unexpected indent
janv. 11 03:37:57 snips snips-skill-server[3818]: WARN:snips_skill_server_lib::handler::nosandbox: child Tealque-searchWikipedia-Tealque.Wikipedia has stopped with status `exit code: 1`
janv. 11 03:37:57 snips snips-skill-server[3818]: ERROR:snips_skill_server_lib::runner            : action Tealque-searchWikipedia-Tealque.Wikipedia failed 3 times in the last 10 seconds, disabling it

#4

You have some identation errors in your python files, mixing tabs and spaces identation is not allowed in python. Check the logs to see what files and lines and correct them


#5

Ok ! Where does that come from ? Because I only have appstore with app that seems to be largely used. I doubt it would be the fault of the developper so what did I’ve done wrong do end up to this ?

And after a little look at the python file pointed out in the log, I’ve found out that line 45 is an empty line… My python knowledge is very limited… sorry about that.

Maybe I missed some dependencies ? I followed the quick start with Rpi to install Snips, and I had no mentions of hermes-python before ozie’s post.


#6

No, the error is clear, identation is wrong. Turn on the display of invisible characters and check wheter you have a tab somewhere when everything else is double space identated or the opposite. Use something like notepad++ The error state unexpected ident, so it might also be that lang='FR? is idented but shouldn’t be