Problems installing the assistant on Raspberry Pi


#1

Whenever I try to install my assistant I always get this error message:

βœ– Error setting up virtualenv, one or more actions might not be able to run. Reason :
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I have checked the pip version and it is 18.1:

pi@Adam: ~ $ python -m pip --version
pip 18.1 from /home/pi/.local/lib/python2.7/site-packages/pip (python 2.7)
pi@Adam: ~ $ python3 -m pip --version
pip 18.1 from /home/pi/.local/lib/python3.5/site-packages/pip (python 3.5)

Sam is at version 0.0.42

How can I fix this error?


Error with actions since 0.60.12
#2

I have the same issue.

pi@raspsnips:~ $ sam update-assistant
Updating assistant
NLU training done
ASR training done
βœ” Deploying assistant to raspsnips...
Checking for actions
Generating virtual environment for snips-skill-respeaker done
βœ– Error setting up virtualenv, one or more actions might not be able to run. Reason :
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Generating virtual environment for snips-skill-heure done
βœ– Error setting up virtualenv, one or more actions might not be able to run. Reason :
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
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 

For the check, I have pip 9.0.1 on python3

pi@raspsnips:~ $ python -m pip --version
pip 18.1 from /home/pi/.local/lib/python2.7/site-packages/pip (python 2.7)
pi@raspsnips:~ $ python3 -m pip --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)

#3

Pip installs in the venv, what you are checking is not the venv pip version. Upgrade pip in the venv itself :slight_smile:


#4

Is it the command to do ?

source /var/lib/snips/skills/snips-skill-heure/venv/bin/activate
pip install --upgrade pip
deactivate

#5

How would I upgrade the venv pip? Sorry but I’m pretty new to this stuff and have never had to mess with venvs before.


#6
pi@raspsnips:~ $ source /var/lib/snips/skills/snips-skill-heure/venv/bin/activate
(venv) pi@raspsnips:~ $ pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
  Using cached https://files.pythonhosted.org/packages/c2/d7/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/pip-18.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 18.0
    Uninstalling pip-18.0:
      Successfully uninstalled pip-18.0
Successfully installed pip-18.1
(venv) pi@raspsnips:~ $ deactivate
pi@raspsnips:~ $



pi@raspsnips:~ $ source /var/lib/snips/skills/snips-skill-respeaker/venv/bin/activate
(venv) pi@raspsnips:~ $ pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pip
  Using cached https://files.pythonhosted.org/packages/c2/d7/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/pip-18.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 18.0
    Uninstalling pip-18.0:
      Successfully uninstalled pip-18.0
Successfully installed pip-18.1
(venv) pi@raspsnips:~ $ deactivate
pi@raspsnips:~ $

Python/pip Error in update-assistant
#7

Thank to put me on the right way. :sunglasses:


#8

Lets say i have 20 skills. Do i have to manually install it on every venv?!? Isn’t there a more easy way?


#9

You have to install your assistant on your main device, not on the satellites