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?

0 Likes

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)
0 Likes

#3

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

1 Like

#4

Is it the command to do ?

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

#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.

0 Likes

#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:~ $
1 Like

Python/pip Error in update-assistant
#7

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

0 Likes

#8

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

0 Likes

#9

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

0 Likes

#10

Hello. I’m new in the Community. I’m a Jeedom user and I try to use Snips with Jeedom.
But I would like also to use some other apps.
I followed the procedure and installed the assistant on the pi Raspberry in the pack Snips-Seeed.
It seems that Snips doesn’t recognize my voice.
I think it may be caused by this error due to the version of Pip. I upgraded Pip for each app but the message still appears for the snips-app-sht31, Snips-calculette and snips-skill-heure.
I thank you in advance for your support.

0 Likes