snipsco / snips-issues

Feel free to share your bugs with us.
14 stars 5 forks source link

/var/lib/snips/skills/<assistant>/venv not being created #128

Closed hav0ck closed 5 years ago

hav0ck commented 5 years ago

What's the issue? Fresh install of Snips on a clean Ubuntu 18.04.1 VM. When trying to use "sam install demo" the /venv folder is not being created.

Output after "sam install demo"

✔ Installing Snips fake weather demo
Cloning skill from url: https://github.com/snipsco/snips-skill-weather-tts.git
Cloning into 'snips-skill-weather-tts'...

warning: unable to access '/home/bert/.config/git/attributes': Permission denied

✔ Installing pip and virtualenv. This could take a while.
Running setup.sh & generating virtual environment for snips-skill-weather-tts
✖ Error setting up virtualenv, one or more actions might not be able to run. Reason :
setup.sh: 14: setup.sh: virtualenv: not found
setup.sh: 18: .: Can't open venv/bin/activate

Checking actions for end-user parameters
Relaunching snips-skill-server
✔ Snips assistant is now running. Say hey_snips to start!
i Run sam watch to see the logs

How to reproduce simply running a sam install demo causes the error

Expected behavior that the demo would install without issue

Version and Environment Ubuntu 18.0.4.1 Python 3.6.7 Python 2.7.15rc1 pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7) Sam version: 0.0.52 virtualenv installed with: pip install and pip3 install

No assistants installed.

Additional information My attempts to resolve this issue have been documented here: https://forum.snips.ai/t/snips-not-working-after-hotword-detection/2372/18

I've also added my user to the _snips-skills group. given the group write permissions to /var/lib/snips/skills/snips-skill-weather-tts directory the venv folder is still not created when sam install is run a second time.

Workaround Untested

sam install demo
virtualenv snips-skill-weather-tts/venv
source snips-skill-weather-tts/venv/bin/activate
pip3 install wheel
pip3 install -r requirements.txt
hav0ck commented 5 years ago

So I tested the separate venv setup and I am now getting the recognition of the command after 'Hey Snips' eg 'What's the weather in London'. There is no audio response but the log shows it detects the request and analyzes it.

cpoisson commented 5 years ago

@hav0ck ,

As said on the forum, sam is designed to run on your dev PC to connect to Pi configured with a raspbian stretch.

I propose to close this issue as its more a support need than a bug.

Let's continue here to solve your issue :)

https://forum.snips.ai/t/snips-not-working-after-hotword-detection/2372/18