shivasiddharth / GassistPi

Google Assistant for Single Board Computers
Other
1.02k stars 303 forks source link

ERROR: pyopenssl 19.1.0 has requirement cryptography>=2.8, but you'll have cryptography 2.4.2 which is incompatible #1019

Closed tomscott50 closed 4 years ago

tomscott50 commented 4 years ago

IMPORTANT NOTICE
If you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.

FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED

Board and OS details:

Open a terminal and run

cat /proc/cpuinfo  
cat /etc/os-release  
Paste your Board and OS details here.   

processor : 0 model name : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7

Hardware : BCM2835 Revision : 9000c1 Serial : 000000009e44d3c1 Model : Raspberry Pi Zero W Rev 1.1

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Describe the bug:

Been trying to install on a pi zero w and after lots of failed attempts (due to poor wifi, much better after i moved it to right by the router) i've hit another issue and i can't seem to see any other issues that have covered this - ERROR: pyopenssl 19.1.0 has requirement cryptography>=2.8, but you'll have cryptography 2.4.2 which is incompatible is the message that I get, have tried twice now and it takes a long time to get to that point each time. Have updated and upgraded and tried rebooting between tries.
Did you go through or search the issues section to check if your issue was already discussed (either currently open issues or closed issues).

Did you go through or search the issues section to check if your issue was already discussed (either currently open issues or closed issues).

Yes/No Yes

2. Is the issue related to assistant installation ?

Yes/No Yes

If answer to question 2 is Yes, then attach the contents of terminal as a file or paste it below.

Enter the your full credential file name including the path and .json extension: /home/mrdj/h6d3ouh9i5sa6n2202idl515uknro0hp.apps.googleusercontent.com.json

Enter the your Google Cloud Console Project-Id: mr-dj-278519

Enter the modelid that was generated in the actions console: mr-dj-278519-mr-dj-36wnp7

Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Fetched 15.0 kB in 3s (5,860 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
autoconf is already the newest version (2.69-11).
automake is already the newest version (1:1.16.1-4).
bison is already the newest version (2:3.3.2.dfsg-1).
build-essential is already the newest version (12.6).
gcc is already the newest version (4:8.3.0-1+rpi2).
git is already the newest version (1:2.20.1-2+deb10u3).
libatlas-base-dev is already the newest version (3.10.3-8+rpi1).
libffi-dev is already the newest version (3.2.1-9).
libjack-jackd2-dev is already the newest version (1.9.12~dfsg-2).
libmpg123-dev is already the newest version (1.25.10-2).
libpcre3 is already the newest version (2:8.39-12).
libpcre3-dev is already the newest version (2:8.39-12).
libsox-fmt-mp3 is already the newest version (14.4.2+git20190427-1).
libxml2-dev is already the newest version (2.9.4+dfsg1-7+b3).
libxslt1-dev is already the newest version (1.1.32-2.2~deb10u1).
mpg123 is already the newest version (1.25.10-2).
mplayer is already the newest version (2:1.3.0-8+b5).
mpv is already the newest version (0.29.1-1).
nmap is already the newest version (7.70+dfsg1-6).
portaudio19-dev is already the newest version (19.6.0-1).
pulseaudio is already the newest version (12.2-4+deb10u1).
python is already the newest version (2.7.16-1).
python-dev is already the newest version (2.7.16-1).
python-setuptools is already the newest version (40.8.0-1).
python3 is already the newest version (3.7.3-1).
python3-dev is already the newest version (3.7.3-1).
python3-lxml is already the newest version (4.3.2-1).
python3-setuptools is already the newest version (40.8.0-1).
python3-venv is already the newest version (3.7.3-1).
socat is already the newest version (1.7.3.2-2).
sox is already the newest version (14.4.2+git20190427-1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
libssl-dev is already the newest version (1.1.1d-0+deb10u3+rpt1).
python-pip is already the newest version (18.1-5+rpt1).
python3-pip is already the newest version (18.1-5+rpt1).
vlc is already the newest version (3.0.10-0+deb10u1+rpt2).
The following package was automatically installed and is no longer required:
  rpi-eeprom-images
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyaudio in /usr/local/lib/python2.7/dist-packages (0.2.11)

Checking OS Compatability

You are running the installer on Buster

=Your board does not support Ok-Google Hotword. You need to trigger the assistant using pushbutton/custom-wakeword

GPIO pins can be used with the assistant

Copying Snowboy files to GassistPi directory

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: pip in ./env/lib/python3.7/site-packages (20.1.1)
Requirement already up-to-date: setuptools in ./env/lib/python3.7/site-packages (47.1.1)
Requirement already up-to-date: wheel in ./env/lib/python3.7/site-packages (0.34.2)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting git+https://github.com/plamere/spotipy.git (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 17))
  Cloning https://github.com/plamere/spotipy.git to /tmp/pip-req-build-oyn4f1g8
  Running command git clone -q https://github.com/plamere/spotipy.git /tmp/pip-req-build-oyn4f1g8
Requirement already satisfied (use --upgrade to upgrade): spotipy==2.12.0 from git+https://github.com/plamere/spotipy.git in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 17))
Collecting git+https://github.com/shivasiddharth/py-googletrans.git (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 23))
  Cloning https://github.com/shivasiddharth/py-googletrans.git to /tmp/pip-req-build-7_bbx3wt
  Running command git clone -q https://github.com/shivasiddharth/py-googletrans.git /tmp/pip-req-build-7_bbx3wt
Requirement already satisfied (use --upgrade to upgrade): googletrans==2.3.0 from git+https://github.com/shivasiddharth/py-googletrans.git in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 23))
Requirement already satisfied: pyaudio>=0.2.11 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 1)) (0.2.11)
Requirement already satisfied: aftership>=0.2 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 2)) (1.0.post2)
Requirement already satisfied: feedparser>=5.2.1 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 3)) (5.2.1)
Requirement already satisfied: kodi-json>=1.0.0 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 4)) (1.0.0)
Requirement already satisfied: gmusicapi>=11.1.1 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (13.0.0)
Requirement already satisfied: gTTS==2.0.2 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 6)) (2.0.2)
Requirement already satisfied: gTTS-token==1.1.3 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 7)) (1.1.3)
Requirement already satisfied: youtube_dl>=2018.11.23 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 8)) (2020.6.6)
Requirement already satisfied: PyChromecast>=2.3.0 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 9)) (6.0.0)
Requirement already satisfied: pafy>=0.5.4 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 10)) (0.5.5)
Requirement already satisfied: psutil>=5.4.8 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 11)) (5.7.0)
Requirement already satisfied: urllib3>=1.24.1 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 12)) (1.25.9)
Requirement already satisfied: google-api-python-client>=1.7.5 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (1.9.1)
Requirement already satisfied: requests>=2.20.1 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 14)) (2.23.0)
Requirement already satisfied: pushbullet.py>=0.11.0 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 15)) (0.11.0)
Requirement already satisfied: python-vlc>=3.0.4106 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 16)) (3.0.9113)
Requirement already satisfied: pyyaml==3.13 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 18)) (3.13)
Requirement already satisfied: spidev>=3.2 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 19)) (3.5)
Requirement already satisfied: gpiozero>=1.4.1 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 20)) (1.5.1)
Requirement already satisfied: numpy>=1.15.4 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 21)) (1.18.5)
Requirement already satisfied: pycryptodomex==3.7.2 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 22)) (3.7.2)
Requirement already satisfied: paho-mqtt==1.4.0 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 24)) (1.4.0)
Requirement already satisfied: google-cloud-texttospeech==0.3.0 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 25)) (0.3.0)
Requirement already satisfied: google-cloud-speech==0.36.0 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 26)) (0.36.0)
Requirement already satisfied: adafruit-io==2.1 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 27)) (2.1)
Requirement already satisfied: cryptography==2.4.2 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 28)) (2.4.2)
Requirement already satisfied: mock==3.0.5 in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 29)) (3.0.5)
Requirement already satisfied: oauth2client in ./env/lib/python3.7/site-packages (from -r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 30)) (4.1.3)
Requirement already satisfied: six>=1.10.0 in ./env/lib/python3.7/site-packages (from spotipy==2.12.0->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 17)) (1.15.0)
Requirement already satisfied: protobuf>=3.0.0 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (3.12.2)
Requirement already satisfied: MechanicalSoup>=0.4.0 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (0.12.0)
Requirement already satisfied: gpsoauth>=0.2.0 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (0.4.1)
Requirement already satisfied: validictory!=0.9.2,>=0.8.0 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (1.1.2)
Requirement already satisfied: proboscis>=1.2.5.1 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (1.2.6.0)
Requirement already satisfied: mutagen>=1.34 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (1.44.0)
Requirement already satisfied: appdirs>=1.1.0 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (1.4.4)
Requirement already satisfied: decorator>=3.3.1 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (4.4.2)
Requirement already satisfied: python-dateutil!=2.0,>=1.3 in ./env/lib/python3.7/site-packages (from gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (2.8.1)
Requirement already satisfied: bs4 in ./env/lib/python3.7/site-packages (from gTTS==2.0.2->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 6)) (0.0.1)
Requirement already satisfied: click in ./env/lib/python3.7/site-packages (from gTTS==2.0.2->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 6)) (7.1.2)
Requirement already satisfied: zeroconf>=0.25.1 in ./env/lib/python3.7/site-packages (from PyChromecast>=2.3.0->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 9)) (0.27.1)
Requirement already satisfied: casttube>=0.2.0 in ./env/lib/python3.7/site-packages (from PyChromecast>=2.3.0->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 9)) (0.2.1)
Requirement already satisfied: google-auth>=1.16.0 in ./env/lib/python3.7/site-packages (from google-api-python-client>=1.7.5->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (1.16.1)
Requirement already satisfied: google-auth-httplib2>=0.0.3 in ./env/lib/python3.7/site-packages (from google-api-python-client>=1.7.5->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (0.0.3)
Requirement already satisfied: uritemplate<4dev,>=3.0.0 in ./env/lib/python3.7/site-packages (from google-api-python-client>=1.7.5->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (3.0.1)
Requirement already satisfied: httplib2<1dev,>=0.9.2 in ./env/lib/python3.7/site-packages (from google-api-python-client>=1.7.5->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (0.18.1)
Requirement already satisfied: google-api-core<2dev,>=1.17.0 in ./env/lib/python3.7/site-packages (from google-api-python-client>=1.7.5->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (1.19.1)
Requirement already satisfied: idna<3,>=2.5 in ./env/lib/python3.7/site-packages (from requests>=2.20.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 14)) (2.9)
Requirement already satisfied: certifi>=2017.4.17 in ./env/lib/python3.7/site-packages (from requests>=2.20.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 14)) (2020.4.5.2)
Requirement already satisfied: chardet<4,>=3.0.2 in ./env/lib/python3.7/site-packages (from requests>=2.20.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 14)) (3.0.4)
Requirement already satisfied: websocket-client in ./env/lib/python3.7/site-packages (from pushbullet.py>=0.11.0->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 15)) (0.57.0)
Requirement already satisfied: python-magic in ./env/lib/python3.7/site-packages (from pushbullet.py>=0.11.0->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 15)) (0.4.18)
Requirement already satisfied: colorzero in ./env/lib/python3.7/site-packages (from gpiozero>=1.4.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 20)) (1.1)
Requirement already satisfied: asn1crypto>=0.21.0 in ./env/lib/python3.7/site-packages (from cryptography==2.4.2->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 28)) (1.3.0)
Requirement already satisfied: cffi!=1.11.3,>=1.7 in ./env/lib/python3.7/site-packages (from cryptography==2.4.2->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 28)) (1.14.0)
Requirement already satisfied: pyasn1-modules>=0.0.5 in ./env/lib/python3.7/site-packages (from oauth2client->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 30)) (0.2.8)
Requirement already satisfied: pyasn1>=0.1.7 in ./env/lib/python3.7/site-packages (from oauth2client->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 30)) (0.4.8)
Requirement already satisfied: rsa>=3.1.4 in ./env/lib/python3.7/site-packages (from oauth2client->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 30)) (4.0)
Requirement already satisfied: setuptools in ./env/lib/python3.7/site-packages (from protobuf>=3.0.0->gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (47.1.1)
Requirement already satisfied: beautifulsoup4>=4.4 in ./env/lib/python3.7/site-packages (from MechanicalSoup>=0.4.0->gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (4.9.1)
Requirement already satisfied: lxml in ./env/lib/python3.7/site-packages (from MechanicalSoup>=0.4.0->gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (4.5.1)
Requirement already satisfied: ifaddr in ./env/lib/python3.7/site-packages (from zeroconf>=0.25.1->PyChromecast>=2.3.0->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 9)) (0.1.7)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in ./env/lib/python3.7/site-packages (from google-auth>=1.16.0->google-api-python-client>=1.7.5->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (4.1.0)
Requirement already satisfied: pytz in ./env/lib/python3.7/site-packages (from google-api-core<2dev,>=1.17.0->google-api-python-client>=1.7.5->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (2020.1)
Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.6.0 in ./env/lib/python3.7/site-packages (from google-api-core<2dev,>=1.17.0->google-api-python-client>=1.7.5->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 13)) (1.52.0)
Requirement already satisfied: pycparser in ./env/lib/python3.7/site-packages (from cffi!=1.11.3,>=1.7->cryptography==2.4.2->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 28)) (2.20)
Requirement already satisfied: soupsieve>1.2 in ./env/lib/python3.7/site-packages (from beautifulsoup4>=4.4->MechanicalSoup>=0.4.0->gmusicapi>=11.1.1->-r /home/mrdj/GassistPi/Requirements/GassistPi-pip-requirements.txt (line 5)) (2.0.1)
Building wheels for collected packages: spotipy, googletrans
  Building wheel for spotipy (setup.py) ... done
  Created wheel for spotipy: filename=spotipy-2.12.0-py3-none-any.whl size=19025 sha256=65625f8ad6176cb5fdf17f252f2c0aacb220baabb1496c9a40461f92ec17c1f9
  Stored in directory: /tmp/pip-ephem-wheel-cache-7pti_49g/wheels/4c/90/da/4e774a27e9cd8e21c762b7d11ecc110efdc8bb69ef744f59af
  Building wheel for googletrans (setup.py) ... done
  Created wheel for googletrans: filename=googletrans-2.3.0-py3-none-any.whl size=16446 sha256=a8777167ab20a2e5ccfff2438e4430d21fc588b9a7b4664b1c4437da33695849
  Stored in directory: /tmp/pip-ephem-wheel-cache-7pti_49g/wheels/48/d0/c7/fca3ea3c88b23c2d93e3535a47fdcefcd2ef48edca78b1b46e
Successfully built spotipy googletrans
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: RPi.GPIO==0.6.3 in ./env/lib/python3.7/site-packages (0.6.3)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting grpcio
  Using cached grpcio-1.29.0.tar.gz (19.6 MB)
Requirement already satisfied, skipping upgrade: six>=1.5.2 in ./env/lib/python3.7/site-packages (from grpcio) (1.15.0)
Skipping wheel build for grpcio, due to binaries being disabled for it.
Installing collected packages: grpcio
    Running setup.py install for grpcio ... done
Successfully installed grpcio-1.29.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting google-assistant-grpc==0.3.0
  Downloading google_assistant_grpc-0.3.0-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: googleapis-common-protos>=1.5.2 in ./env/lib/python3.7/site-packages (from google-assistant-grpc==0.3.0) (1.52.0)
Requirement already satisfied: grpcio>=1.3.5 in ./env/lib/python3.7/site-packages (from google-assistant-grpc==0.3.0) (1.29.0)
Requirement already satisfied: protobuf>=3.6.0 in ./env/lib/python3.7/site-packages (from googleapis-common-protos>=1.5.2->google-assistant-grpc==0.3.0) (3.12.2)
Requirement already satisfied: six>=1.5.2 in ./env/lib/python3.7/site-packages (from grpcio>=1.3.5->google-assistant-grpc==0.3.0) (1.15.0)
Requirement already satisfied: setuptools in ./env/lib/python3.7/site-packages (from protobuf>=3.6.0->googleapis-common-protos>=1.5.2->google-assistant-grpc==0.3.0) (47.1.1)
Installing collected packages: google-assistant-grpc
Successfully installed google-assistant-grpc-0.3.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting google-assistant-sdk==0.6.0
  Downloading google_assistant_sdk-0.6.0-py2.py3-none-any.whl (31 kB)
Collecting google-auth-oauthlib[tool]>=0.1.0
  Downloading google_auth_oauthlib-0.4.1-py2.py3-none-any.whl (18 kB)
Collecting requests-oauthlib>=0.7.0
  Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: google-auth in ./env/lib/python3.7/site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (1.16.1)
Requirement already satisfied: click; extra == "tool" in ./env/lib/python3.7/site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (7.1.2)
Collecting oauthlib>=3.0.0
  Downloading oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
     |████████████████████████████████| 147 kB 1.1 MB/s
Requirement already satisfied: requests>=2.0.0 in ./env/lib/python3.7/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (2.23.0)
Requirement already satisfied: six>=1.9.0 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (1.15.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (0.2.8)
Requirement already satisfied: rsa<4.1,>=3.1.4 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (4.0)
Requirement already satisfied: setuptools>=40.3.0 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (47.1.1)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (4.1.0)
Requirement already satisfied: idna<3,>=2.5 in ./env/lib/python3.7/site-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (2.9)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./env/lib/python3.7/site-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (1.25.9)
Requirement already satisfied: chardet<4,>=3.0.2 in ./env/lib/python3.7/site-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in ./env/lib/python3.7/site-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (2020.4.5.2)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in ./env/lib/python3.7/site-packages (from pyasn1-modules>=0.2.1->google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (0.4.8)
Installing collected packages: oauthlib, requests-oauthlib, google-auth-oauthlib, google-assistant-sdk
Successfully installed google-assistant-sdk-0.6.0 google-auth-oauthlib-0.4.1 oauthlib-3.1.0 requests-oauthlib-1.3.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: google-assistant-sdk[samples]==0.6.0 in ./env/lib/python3.7/site-packages (0.6.0)
Requirement already satisfied: google-auth-oauthlib[tool]>=0.1.0 in ./env/lib/python3.7/site-packages (from google-assistant-sdk[samples]==0.6.0) (0.4.1)
Requirement already satisfied: urllib3[secure]<2,>=1.21; extra == "samples" in ./env/lib/python3.7/site-packages (from google-assistant-sdk[samples]==0.6.0) (1.25.9)
Collecting google-assistant-grpc==0.2.1; extra == "samples"
  Downloading google_assistant_grpc-0.2.1-py2.py3-none-any.whl (21 kB)
Collecting tenacity<5,>=4.1.0; extra == "samples"
  Downloading tenacity-4.12.0-py2.py3-none-any.whl (25 kB)
Collecting pathlib2<3,>=2.3.0; extra == "samples"
  Downloading pathlib2-2.3.5-py2.py3-none-any.whl (18 kB)
Collecting click<7,>=6.7; extra == "samples"
  Downloading click-6.7-py2.py3-none-any.whl (71 kB)
     |████████████████████████████████| 71 kB 832 kB/s
Collecting futures<4,>=3.1.1; extra == "samples"
  Downloading futures-3.1.1-py3-none-any.whl (2.8 kB)
Collecting sounddevice<0.4,>=0.3.7; extra == "samples"
  Downloading sounddevice-0.3.15-py2.py3-none-any.whl (30 kB)
Requirement already satisfied: requests-oauthlib>=0.7.0 in ./env/lib/python3.7/site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (1.3.0)
Requirement already satisfied: google-auth in ./env/lib/python3.7/site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (1.16.1)
Requirement already satisfied: certifi; extra == "secure" in ./env/lib/python3.7/site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (2020.4.5.2)
Requirement already satisfied: cryptography>=1.3.4; extra == "secure" in ./env/lib/python3.7/site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (2.4.2)
Requirement already satisfied: idna>=2.0.0; extra == "secure" in ./env/lib/python3.7/site-packages (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (2.9)
Collecting pyOpenSSL>=0.14; extra == "secure"
  Downloading pyOpenSSL-19.1.0-py2.py3-none-any.whl (53 kB)
     |████████████████████████████████| 53 kB 347 kB/s
Requirement already satisfied: grpcio>=1.3.5 in ./env/lib/python3.7/site-packages (from google-assistant-grpc==0.2.1; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (1.29.0)
Requirement already satisfied: googleapis-common-protos>=1.5.2 in ./env/lib/python3.7/site-packages (from google-assistant-grpc==0.2.1; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (1.52.0)
Requirement already satisfied: six>=1.9.0 in ./env/lib/python3.7/site-packages (from tenacity<5,>=4.1.0; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (1.15.0)
Requirement already satisfied: CFFI>=1.0 in ./env/lib/python3.7/site-packages (from sounddevice<0.4,>=0.3.7; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (1.14.0)
Requirement already satisfied: requests>=2.0.0 in ./env/lib/python3.7/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (2.23.0)
Requirement already satisfied: oauthlib>=3.0.0 in ./env/lib/python3.7/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (3.1.0)
Requirement already satisfied: setuptools>=40.3.0 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (47.1.1)
Requirement already satisfied: rsa<4.1,>=3.1.4 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (4.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (0.2.8)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in ./env/lib/python3.7/site-packages (from google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (4.1.0)
Requirement already satisfied: asn1crypto>=0.21.0 in ./env/lib/python3.7/site-packages (from cryptography>=1.3.4; extra == "secure"->urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (1.3.0)
Requirement already satisfied: protobuf>=3.6.0 in ./env/lib/python3.7/site-packages (from googleapis-common-protos>=1.5.2->google-assistant-grpc==0.2.1; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (3.12.2)
Requirement already satisfied: pycparser in ./env/lib/python3.7/site-packages (from CFFI>=1.0->sounddevice<0.4,>=0.3.7; extra == "samples"->google-assistant-sdk[samples]==0.6.0) (2.20)
Requirement already satisfied: chardet<4,>=3.0.2 in ./env/lib/python3.7/site-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (3.0.4)
Requirement already satisfied: pyasn1>=0.1.3 in ./env/lib/python3.7/site-packages (from rsa<4.1,>=3.1.4->google-auth->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.6.0) (0.4.8)
ERROR: pyopenssl 19.1.0 has requirement cryptography>=2.8, but you'll have cryptography 2.4.2 which is incompatible.
Installing collected packages: google-assistant-grpc, tenacity, pathlib2, click, futures, sounddevice, pyOpenSSL
  Attempting uninstall: google-assistant-grpc
    Found existing installation: google-assistant-grpc 0.3.0
    Uninstalling google-assistant-grpc-0.3.0:
      Successfully uninstalled google-assistant-grpc-0.3.0
  Attempting uninstall: click
    Found existing installation: click 7.1.2
    Uninstalling click-7.1.2:
      Successfully uninstalled click-7.1.2
Successfully installed click-6.7 futures-3.1.1 google-assistant-grpc-0.2.1 pathlib2-2.3.5 pyOpenSSL-19.1.0 sounddevice-0.3.15 tenacity-4.12.0
Traceback (most recent call last):
  File "/home/mrdj/env/bin/google-oauthlib-tool", line 8, in <module>
    sys.exit(main())
  File "/home/mrdj/env/lib/python3.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/mrdj/env/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/mrdj/env/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mrdj/env/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/mrdj/env/lib/python3.7/site-packages/google_auth_oauthlib/tool/__main__.py", line 100, in main
    scopes=scope
  File "/home/mrdj/env/lib/python3.7/site-packages/google_auth_oauthlib/flow.py", line 196, in from_client_secrets_file
    with open(client_secrets_file, 'r') as json_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/mrdj/h6d3ouh9i5sa6n2202idl515uknro0hp.apps.googleusercontent.com.json'cd

If answer to question 2 is No, then proceed further.

3. Does the assistant service start normally?

Yes/No

4. Is the assistant service restarting automatically?

Yes/No

If answer to question 4 is Yes, then paste the contents of the terminal below.

If answer to question 4 is No, then proceed further.

Manually start the assistant. For guidelines to start the assistant manually refer this

Paste the command below, that crashed the assistant

Paste the contents of the terminal below

Attach the log file named Gassistpi.log

Log file can be found in /tmp/ directory
File is empty when I use Nano to view contents

shivasiddharth commented 4 years ago

This has nothing to do with openssl or cryptography. Your path to the credentials is incorrect. Double check the filename and path that you are entering. You need not use quotes while entering the path. And I am not sure as to why you have a "cd" at the end of the path

tomscott50 commented 4 years ago

the 'cd' at the end of the path is a copy/paste error from when I copied the log out and isn't in the path at the start of the above log. It's not in quotes either? to check the path of the .json files i typed the following commands to get to the directory and then typed ls to confirm that the file was there, hopefully this is right and will give me the correct path?

mrdj@MrDJ:/tmp $ cd /home/mrdj mrdj@MrDJ:~ $ dir client_secret_560722794581-h6d3ouh9i5sa6n2202idl515uknro0hp.apps.googleusercontent.com.json GassistPi env seeed-voicecard mrdj@MrDJ:~ $ ls client_secret_560722794581-h6d3ouh9i5sa6n2202idl515uknro0hp.apps.googleusercontent.com.json GassistPi env seeed-voicecard mrdj@MrDJ:~ $

meaning the correct path for installation is /home/mrdj/client_secret...........json?

tomscott50 commented 4 years ago

Ah, I just spotted that somehow I must have missed the start of the .json file from the original start of the script. I'm just restarting it to try again now... But I still had the opensll error, won't that cause a problem? Thanks for your help though and I'll let you know how the reinstall goes.

tomscott50 commented 4 years ago

Got it to install at last, but now running into the limitations of the Pi zero and struggling to get the hotword working. I created a snowboy file, scp'd it to the right folder on the zero and it doesn't respond to my voice. It does make a noise though, like a chime as if it has heard and is waiting for a response but doesn't respond.

To be fair I would probably close this, as I think I'm going to buy a normal Pi to run the assistant on, I would have preferred the Zero as it's much smaller but I can make a normal Pi fit I think. If I get any problems with that I'll let you know, thanks again for the help and for this project, just hope I can get it working and fitted into my robot, it should be pretty cool if I can.

shivasiddharth commented 4 years ago

Pi Zero W has audio rate issues. Can you manually run the assistant and post the terminal contents. Let mw see as to whats going wrong.

Also post outputs of:

aplay -l
arecord -l
tomscott50 commented 4 years ago

mrdj@MrDJ:~ $ /home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/pushbutton.py --project-id 'mr-dj-278519' --d evice-model-id 'mr-dj-278519-mr-dj-36wnp7' /home/mrdj/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/mrdj/.local/share/gmusicapi/mobileclient.cred: No such file or directory warnings.warn(_MISSING_FILE_MESSAGE.format(filename)) 2020-06-08 15:53:13,384 - gmusicapi.Mobileclient1 (shared:176) [WARNING]: could not retrieve oauth credentials from ''/home/mrdj/.local/share/gmusicapi/mobileclient.cred'' Initializing GPIOs 5 and 6 for assistant activity indication ERROR (Input():snowboy-io.cc:315) Fail to open input file "/home/pi/GassistPi/src/resources/alexa.umdl" terminate called after throwing an instance of 'std::runtime_error' what(): ERROR (Input():snowboy-io.cc:315) Fail to open input file "/home/pi/GassistPi/src/resources/alexa.umdl"

[stack trace: ] Backtrace has not been implemented yet.

Aborted

mrdj@MrDJ:~ $ aplay -l List of PLAYBACK Hardware Devices card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0

mrdj@MrDJ:~ $ arecord -l List of CAPTURE Hardware Devices card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [bcm2835-i2s-wm8960-hifi wm8960-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0 mrdj@MrDJ:~ $

shivasiddharth commented 4 years ago

In the config.yaml, i have set the default paths for "pi" user. As you are not operating it as "pi" you need to change those paths.

How did you install seeed studio's hat my installer or seeed studio's ?

tomscott50 commented 4 years ago

have changed the default paths and found that the file I downloaded from Snowboy ends in .pmdl and your script was asking for .umdl? I've changed the config.yaml to .pmdl and am just trying it now.

Can't honestly remember, but I think I might have done it through seeed studios... I've been playing with it on multiple pis and installed it quite a few times over the last few days, so might well have been seeed studios. Can I just follow your script to reinstall it correctly or is there another way?

shivasiddharth commented 4 years ago

You need to uninstall the existing hat installation also delete the voicecard folder and then follow the process from README

tomscott50 commented 4 years ago

OK, I'll have a look at that in a bit, I'm assuming its hung at the moment though - been out for an hour and its not changed from where it got to when I left - see below

mrdj@MrDJ:~/GassistPi/src $ /home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/pushbutton.py --project-id 'mr-dj-278519' --device-model-id 'mr-dj-278519-mr-dj-36wnp7' /home/mrdj/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/mrdj/.local/share/gmusicapi/mobileclient.cred: No such file or directory warnings.warn(_MISSING_FILE_MESSAGE.format(filename)) 2020-06-08 16:09:09,465 - gmusicapi.Mobileclient1 (shared:176) [WARNING]: could not retrieve oauth credentials from ''/home/mrdj/.local/share/gmusicapi/mobileclient.cred'' Initializing GPIOs 5 and 6 for assistant activity indication

Been sat there for a good hour now...

shivasiddharth commented 4 years ago

Have you selected pushbutton trigger or custom wakeword trigger ? can you share the output of again.

aplay -l
arecord -l
tomscott50 commented 4 years ago

Custom wakeword as other than the button on respeaker hat I don't have any buttons to use and i don't know how to set that one up to be fair. I've not uninstalled the seeed studio hat install yet, going to do that now if i can figure out how to. I'm afraid this is all pretty new to me as you might have guessed!

edit to add - found the uninstaller for seeed, so doing that now and will reinstall from your repository

shivasiddharth commented 4 years ago

It can be uninstalled using:

cd ./seeed-voicecard
sudo ./uninstall.sh
shivasiddharth commented 4 years ago

The voicecard folder cna be removed using:

cd /home/${USER}/
sudo rm -rf seeed-voicecard

After this perform the installation as per the README guidelines. Reboot the Pi and check the devices

aplay -l 
arecord -l

The issue is for some weird reason, the onboard pi audio is also appearing along with the 2 mic HAT which should not happen. Normally if we have an I2S DAC, we disable the onboard audio, need to look back if seeed studio have got it intentionally that way. That is not critical though.

Try recording using: rec ./temp.wav

To stop recording use Ctrl +C

Try playing back the recording using aplay ./temp.wav

Let me know if you were able to record something.

tomscott50 commented 4 years ago

ah ok, so you want me to keep going? no worries if you do, but now realising the limitations of the zero w i'm tempted to install on my other RPI 4b that i've got here for now, then buy a new 4b for this project.

but either way, how long should the uninstaller take? it was running for 25 mins, stuck on 'remove dtbos'. I've just logged out of mrdj user and logged in as root and tried again - still stuck on 'remove dtbos'?

shivasiddharth commented 4 years ago

It will take quite a while due to the limitations of Pi Zero. If you have a Pi 4 I would suggest you to ditch Pi Zero. It's not worth the hassles. Pi Zero is not for Voice Assistant applications. Cheers.

tomscott50 commented 4 years ago

OK will do, thanks for your help 👍 Unless I missed it can I suggest that you add a note to your readme as I didn't find it clear that Pi Zero would struggle?

tomscott50 commented 4 years ago

To close this for sure now, I've just installed on my Pi4b and it's working. Was so much quicker and easier!

I've got some other questions on using voice to make a motor run, shall I ask them in the gitter rather than here?