shivasiddharth / GassistPi

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

Installation error cryptography #867

Closed datawire1337 closed 5 years ago

datawire1337 commented 5 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  
**cat /proc/cpuinfo**  
processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : BCM2835
Revision        : a020d3
Serial          : 0000000098305203

**cat /etc/os-release**

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
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:

Upon installation I get an error which is pasted below. 

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

2. Is the issue related to assistant installation ?

Yes

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

Collecting cryptography>=1.3.4; extra == "secure" (from urllib3[secure]<2,>=1.21; extra == "samples"->google-assistant-sdk[samples]==0.5.1)
  Using cached https://files.pythonhosted.org/packages/07/ca/bc827c5e55918ad223d59d299fff92f3563476c3b00d0a9157d9c0217449/cryptography-2.6.1.tar.gz
  Installing build dependencies ... error
  Complete output from command /home/pi/env/bin/python /home/pi/env/lib/python3.5/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-uk5qftv7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools>=18.5 wheel "cffi>=1.8,!=1.11.3; python_implementation != 'PyPy'":
  Traceback (most recent call last):
    File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
      "__main__", mod_spec)
    File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
      exec(code, run_globals)
    File "/home/pi/env/lib/python3.5/site-packages/pip/__main__.py", line 16, in <module>
      from pip._internal import main as _main  # isort:skip # noqa
    File "/home/pi/env/lib/python3.5/site-packages/pip/_internal/__init__.py", line 40, in <module>
      from pip._internal.cli.autocompletion import autocomplete
    File "/home/pi/env/lib/python3.5/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
      from pip._internal.cli.main_parser import create_main_parser
    File "/home/pi/env/lib/python3.5/site-packages/pip/_internal/cli/main_parser.py", line 12, in <module>
      from pip._internal.commands import (
    File "/home/pi/env/lib/python3.5/site-packages/pip/_internal/commands/__init__.py", line 6, in <module>
      from pip._internal.commands.completion import CompletionCommand
    File "/home/pi/env/lib/python3.5/site-packages/pip/_internal/commands/completion.py", line 6, in <module>
      from pip._internal.cli.base_command import Command
    File "/home/pi/env/lib/python3.5/site-packages/pip/_internal/cli/base_command.py", line 25, in <module>
      from pip._internal.index import PackageFinder
    File "/home/pi/env/lib/python3.5/site-packages/pip/_internal/index.py", line 41, in <module>
      from pip._internal.wheel import Wheel
    File "/home/pi/env/lib/python3.5/site-packages/pip/_internal/wheel.py", line 7, in <module>
      import compileall
    File "/usr/lib/python3.5/compileall.py", line 20, in <module>
      from concurrent.futures import ProcessPoolExecutor
    File "/home/pi/env/lib/python3.5/site-packages/concurrent/futures/__init__.py", line 8, in <module>
      from concurrent.futures._base import (FIRST_COMPLETED,
    File "/home/pi/env/lib/python3.5/site-packages/concurrent/futures/_base.py", line 381
      raise exception_type, self._exception, self._traceback
                          ^
  SyntaxError: invalid syntax

  ----------------------------------------
Command "/home/pi/env/bin/python /home/pi/env/lib/python3.5/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-uk5qftv7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools>=18.5 wheel "cffi>=1.8,!=1.11.3; python_implementation != 'PyPy'"" failed with error code 1 in None

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

shivasiddharth commented 5 years ago

The terminal contents are truncated. Can you provide the full terminal contents? Is this Pi's Raspbian or Hassbian ?

datawire1337 commented 5 years ago

Hello,

What do you mean exactly? It's Raspbian.

datawire1337 commented 5 years ago

I've done a new and fresh Raspbian install and it's the same result. I'll try this with another RPi 3B+ and get back to you aswell.

Which terminal content do you need?

shivasiddharth commented 5 years ago

Run the following in the terminal and re run the installer.

source env/bin/activate
pip uninstall futures
datawire1337 commented 5 years ago

I did this, and it gives me the same error.

datawire1337 commented 5 years ago

I've done like 10 installations in the past and they were all successful. I don't see what I'm doing different, just following the steps from your README like always. :o

poulsp commented 5 years ago

I have the same error right now. RPi 3B+ 2019-04-08-raspbian-stretch-lite

shivasiddharth commented 5 years ago

I am away from my pi, so can only suggest stuff to try. Try this and then run the installer.

source env/bin/activate
pip install cryptography==2.4.2
poulsp commented 5 years ago

The workaround source env/bin/activate pip install cryptography==2.4.2 Works. Thank you :)

shivasiddharth commented 5 years ago

I have updated the master. If the issue persists please feel free to reopen.

datawire1337 commented 5 years ago

This worked indeed! Tested it with the update from master aswell.

Thanks!

engperini commented 2 years ago

Please, same error.

processor : 0 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 1 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 2 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

processor : 3 model name : ARMv7 Processor rev 3 (v7l) BogoMIPS : 108.00 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3

Hardware : BCM2711 Revision : d03114 Serial : 100000007761dd53 Model : Raspberry Pi 4 Model B Rev 1.4

pi@raspberrypi:~ $ cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye 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: Upon installation I get an error which is pasted below. 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

  1. Is the issue related to assistant installation ? Yes

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

0% [Working] Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Reading package lists... Done
Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'libxslt1-dev' instead of 'libxslt-dev' autoconf is already the newest version (2.69-14). automake is already the newest version (1:1.16.3-2). bison is already the newest version (2:3.7.5+dfsg-1). build-essential is already the newest version (12.9). gcc is already the newest version (4:10.2.1-1+rpi1). git is already the newest version (1:2.30.2-1). libatlas-base-dev is already the newest version (3.10.3-10+rpi1). libffi-dev is already the newest version (3.3-6). libjack-jackd2-dev is already the newest version (1.9.17~dfsg-1). libmpg123-dev is already the newest version (1.26.4-1). libpcre3 is already the newest version (2:8.39-13). libpcre3-dev is already the newest version (2:8.39-13). libsox-fmt-mp3 is already the newest version (14.4.2+git20190427-2). libxml2-dev is already the newest version (2.9.10+dfsg-6.7+deb11u2). libxslt1-dev is already the newest version (1.1.34-4+deb11u1). mpg123 is already the newest version (1.26.4-1). mplayer is already the newest version (2:1.4+ds1-1). mpv is already the newest version (0.32.0-3). nmap is already the newest version (7.91+dfsg1+really7.80+dfsg1-2). portaudio19-dev is already the newest version (19.6.0-1.1). python3 is already the newest version (3.9.2-3). python3-dev is already the newest version (3.9.2-3). python3-lxml is already the newest version (4.6.3+dfsg-0.1+deb11u1). python3-setuptools is already the newest version (52.0.0-4). python3-venv is already the newest version (3.9.2-3). socat is already the newest version (1.7.4.1-3). sox is already the newest version (14.4.2+git20190427-2). zlib1g-dev is already the newest version (1:1.2.11.dfsg-2+deb11u2). libssl-dev is already the newest version (1.1.1n-0+deb11u3+rpt1). python3-pip is already the newest version (20.3.4-4+rpt1+deb11u1). vlc is already the newest version (3.0.17.4-0+deb11u1+rpi1+rpt3). The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Checking OS Compatability

You are running the installer on Bullseye

Your board supports Ok-Google Hotword. You can also trigger the assistant using custom-wakeword

GPIO pins can be used with the assistant

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: pip in ./env/lib/python3.9/site-packages (22.3) Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (65.5.0) Requirement already satisfied: wheel in ./env/lib/python3.9/site-packages (0.37.1) Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: RPi.GPIO==0.7.1a4 in ./env/lib/python3.9/site-packages (0.7.1a4) Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: google-assistant-library==1.1.0 in ./env/lib/python3.9/site-packages (1.1.0) Requirement already satisfied: requests<3,>=2.14.2 in ./env/lib/python3.9/site-packages (from google-assistant-library==1.1.0) (2.28.1) Requirement already satisfied: pathlib2<3,>=2.3.0 in ./env/lib/python3.9/site-packages (from google-assistant-library==1.1.0) (2.3.7.post1) Collecting argparse<2,>=1.4.0 Using cached https://www.piwheels.org/simple/argparse/argparse-1.4.0-py2.py3-none-any.whl (23 kB) Collecting google-auth<2,>=1.0.1 Using cached https://www.piwheels.org/simple/google-auth/google_auth-1.35.0-py2.py3-none-any.whl (152 kB) Requirement already satisfied: enum34<2,>=1.1.6 in ./env/lib/python3.9/site-packages (from google-assistant-library==1.1.0) (1.1.10) Requirement already satisfied: cachetools<5.0,>=2.0.0 in ./env/lib/python3.9/site-packages (from google-auth<2,>=1.0.1->google-assistant-library==1.1.0) (4.2.4) Requirement already satisfied: setuptools>=40.3.0 in ./env/lib/python3.9/site-packages (from google-auth<2,>=1.0.1->google-assistant-library==1.1.0) (65.5.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in ./env/lib/python3.9/site-packages (from google-auth<2,>=1.0.1->google-assistant-library==1.1.0) (0.2.8) Requirement already satisfied: rsa<5,>=3.1.4 in ./env/lib/python3.9/site-packages (from google-auth<2,>=1.0.1->google-assistant-library==1.1.0) (4.9) Requirement already satisfied: six>=1.9.0 in ./env/lib/python3.9/site-packages (from google-auth<2,>=1.0.1->google-assistant-library==1.1.0) (1.16.0) Requirement already satisfied: idna<4,>=2.5 in ./env/lib/python3.9/site-packages (from requests<3,>=2.14.2->google-assistant-library==1.1.0) (2.10) Requirement already satisfied: certifi>=2017.4.17 in ./env/lib/python3.9/site-packages (from requests<3,>=2.14.2->google-assistant-library==1.1.0) (2022.9.24) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./env/lib/python3.9/site-packages (from requests<3,>=2.14.2->google-assistant-library==1.1.0) (1.26.12) Requirement already satisfied: charset-normalizer<3,>=2 in ./env/lib/python3.9/site-packages (from requests<3,>=2.14.2->google-assistant-library==1.1.0) (2.1.1) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in ./env/lib/python3.9/site-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.0.1->google-assistant-library==1.1.0) (0.4.8) Installing collected packages: argparse, google-auth Attempting uninstall: google-auth Found existing installation: google-auth 2.14.0 Uninstalling google-auth-2.14.0: Successfully uninstalled google-auth-2.14.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. google-auth-oauthlib 0.7.1 requires google-auth>=2.14.0, but you have google-auth 1.35.0 which is incompatible. Successfully installed argparse-1.4.0 google-auth-1.35.0 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: google-assistant-grpc==0.3.0 in ./env/lib/python3.9/site-packages (0.3.0) Requirement already satisfied: googleapis-common-protos>=1.5.2 in ./env/lib/python3.9/site-packages (from google-assistant-grpc==0.3.0) (1.56.4) Requirement already satisfied: grpcio>=1.3.5 in ./env/lib/python3.9/site-packages (from google-assistant-grpc==0.3.0) (1.43.0) Requirement already satisfied: protobuf<5.0.0dev,>=3.15.0 in ./env/lib/python3.9/site-packages (from googleapis-common-protos>=1.5.2->google-assistant-grpc==0.3.0) (3.20.3) Requirement already satisfied: six>=1.5.2 in ./env/lib/python3.9/site-packages (from grpcio>=1.3.5->google-assistant-grpc==0.3.0) (1.16.0) Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: google-assistant-sdk==0.6.0 in ./env/lib/python3.9/site-packages (0.6.0) Requirement already satisfied: google-auth-oauthlib[tool]>=0.1.0 in ./env/lib/python3.9/site-packages (from google-assistant-sdk==0.6.0) (0.7.1) Requirement already satisfied: requests-oauthlib>=0.7.0 in ./env/lib/python3.9/site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (1.3.1) Collecting google-auth>=2.14.0 Using cached https://www.piwheels.org/simple/google-auth/google_auth-2.14.0-py2.py3-none-any.whl (175 kB) Requirement already satisfied: click>=6.0.0 in ./env/lib/python3.9/site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (8.1.3) Requirement already satisfied: rsa<5,>=3.1.4 in ./env/lib/python3.9/site-packages (from google-auth>=2.14.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (4.9) Requirement already satisfied: pyasn1-modules>=0.2.1 in ./env/lib/python3.9/site-packages (from google-auth>=2.14.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (0.2.8) Requirement already satisfied: cachetools<6.0,>=2.0.0 in ./env/lib/python3.9/site-packages (from google-auth>=2.14.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (4.2.4) Requirement already satisfied: six>=1.9.0 in ./env/lib/python3.9/site-packages (from google-auth>=2.14.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (1.16.0) Requirement already satisfied: requests>=2.0.0 in ./env/lib/python3.9/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (2.28.1) Requirement already satisfied: oauthlib>=3.0.0 in ./env/lib/python3.9/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (3.2.2) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in ./env/lib/python3.9/site-packages (from pyasn1-modules>=0.2.1->google-auth>=2.14.0->google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk==0.6.0) (0.4.8) Requirement already satisfied: idna<4,>=2.5 in ./env/lib/python3.9/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.10) Requirement already satisfied: certifi>=2017.4.17 in ./env/lib/python3.9/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) (2022.9.24) Requirement already satisfied: charset-normalizer<3,>=2 in ./env/lib/python3.9/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.1.1) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./env/lib/python3.9/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.26.12) Installing collected packages: google-auth Attempting uninstall: google-auth Found existing installation: google-auth 1.35.0 Uninstalling google-auth-1.35.0: Successfully uninstalled google-auth-1.35.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. google-assistant-library 1.1.0 requires google-auth<2,>=1.0.1, but you have google-auth 2.14.0 which is incompatible. Successfully installed google-auth-2.14.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.9/site-packages (0.6.0) Requirement already satisfied: google-auth-oauthlib[tool]>=0.1.0 in ./env/lib/python3.9/site-packages (from google-assistant-sdk[samples]==0.6.0) (0.7.1) Collecting click<7,>=6.7 Using cached https://www.piwheels.org/simple/click/click-6.7-py2.py3-none-any.whl (71 kB) Collecting sounddevice<0.4,>=0.3.7 Using cached https://www.piwheels.org/simple/sounddevice/sounddevice-0.3.15-py2.py3-none-any.whl (30 kB) Collecting google-assistant-grpc==0.2.1 Using cached https://www.piwheels.org/simple/google-assistant-grpc/google_assistant_grpc-0.2.1-py2.py3-none-any.whl (21 kB) Requirement already satisfied: urllib3[secure]<2,>=1.21 in ./env/lib/python3.9/site-packages (from google-assistant-sdk[samples]==0.6.0) (1.26.12) Requirement already satisfied: pathlib2<3,>=2.3.0 in ./env/lib/python3.9/site-packages (from google-assistant-sdk[samples]==0.6.0) (2.3.7.post1) Collecting google-auth-oauthlib<0.3,>=0.1.0 Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.2.0-py2.py3-none-any.whl (12 kB) Requirement already satisfied: futures<4,>=3.1.1 in ./env/lib/python3.9/site-packages (from google-assistant-sdk[samples]==0.6.0) (3.1.1) Collecting tenacity<5,>=4.1.0 Using cached https://www.piwheels.org/simple/tenacity/tenacity-4.12.0-py2.py3-none-any.whl (25 kB) Requirement already satisfied: googleapis-common-protos>=1.5.2 in ./env/lib/python3.9/site-packages (from google-assistant-grpc==0.2.1->google-assistant-sdk[samples]==0.6.0) (1.56.4) Requirement already satisfied: grpcio>=1.3.5 in ./env/lib/python3.9/site-packages (from google-assistant-grpc==0.2.1->google-assistant-sdk[samples]==0.6.0) (1.43.0) Requirement already satisfied: requests-oauthlib>=0.7.0 in ./env/lib/python3.9/site-packages (from google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (1.3.1) Requirement already satisfied: google-auth in ./env/lib/python3.9/site-packages (from google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (2.14.0) Collecting google-auth-oauthlib[tool]>=0.1.0 Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.7.0-py2.py3-none-any.whl (19 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.5.3-py2.py3-none-any.whl (19 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.5.2-py2.py3-none-any.whl (19 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.5.1-py2.py3-none-any.whl (19 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.5.0-py2.py3-none-any.whl (18 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.4.5-py2.py3-none-any.whl (18 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.4.4-py2.py3-none-any.whl (18 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.4.3-py2.py3-none-any.whl (18 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.4.2-py2.py3-none-any.whl (18 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.4.1-py2.py3-none-any.whl (18 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.4.0-py2.py3-none-any.whl (17 kB) Using cached https://www.piwheels.org/simple/google-auth-oauthlib/google_auth_oauthlib-0.3.0-py2.py3-none-any.whl (15 kB) Requirement already satisfied: six in ./env/lib/python3.9/site-packages (from pathlib2<3,>=2.3.0->google-assistant-sdk[samples]==0.6.0) (1.16.0) Requirement already satisfied: CFFI>=1.0 in ./env/lib/python3.9/site-packages (from sounddevice<0.4,>=0.3.7->google-assistant-sdk[samples]==0.6.0) (1.15.1) Requirement already satisfied: cryptography>=1.3.4 in ./env/lib/python3.9/site-packages (from urllib3[secure]<2,>=1.21->google-assistant-sdk[samples]==0.6.0) (3.3.2) Requirement already satisfied: certifi in ./env/lib/python3.9/site-packages (from urllib3[secure]<2,>=1.21->google-assistant-sdk[samples]==0.6.0) (2022.9.24) Requirement already satisfied: idna>=2.0.0 in ./env/lib/python3.9/site-packages (from urllib3[secure]<2,>=1.21->google-assistant-sdk[samples]==0.6.0) (2.10) Collecting urllib3-secure-extra Using cached https://www.piwheels.org/simple/urllib3-secure-extra/urllib3_secure_extra-0.1.0-py2.py3-none-any.whl (1.4 kB) Collecting pyOpenSSL>=0.14 Using cached https://www.piwheels.org/simple/pyopenssl/pyOpenSSL-22.1.0-py3-none-any.whl (56 kB) Requirement already satisfied: pycparser in ./env/lib/python3.9/site-packages (from CFFI>=1.0->sounddevice<0.4,>=0.3.7->google-assistant-sdk[samples]==0.6.0) (2.21) Requirement already satisfied: protobuf<5.0.0dev,>=3.15.0 in ./env/lib/python3.9/site-packages (from googleapis-common-protos>=1.5.2->google-assistant-grpc==0.2.1->google-assistant-sdk[samples]==0.6.0) (3.20.3) Collecting cryptography>=1.3.4 Using cached cryptography-38.0.3.tar.gz (599 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: oauthlib>=3.0.0 in ./env/lib/python3.9/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (3.2.2) Requirement already satisfied: requests>=2.0.0 in ./env/lib/python3.9/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (2.28.1) Requirement already satisfied: rsa<5,>=3.1.4 in ./env/lib/python3.9/site-packages (from google-auth->google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (4.9) Requirement already satisfied: cachetools<6.0,>=2.0.0 in ./env/lib/python3.9/site-packages (from google-auth->google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (4.2.4) Requirement already satisfied: pyasn1-modules>=0.2.1 in ./env/lib/python3.9/site-packages (from google-auth->google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (0.2.8) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in ./env/lib/python3.9/site-packages (from pyasn1-modules>=0.2.1->google-auth->google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (0.4.8) Requirement already satisfied: charset-normalizer<3,>=2 in ./env/lib/python3.9/site-packages (from requests>=2.0.0->requests-oauthlib>=0.7.0->google-auth-oauthlib<0.3,>=0.1.0->google-assistant-sdk[samples]==0.6.0) (2.1.1) Building wheels for collected packages: cryptography Building wheel for cryptography (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for cryptography (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [193 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-armv7l-cpython-39 creating build/lib.linux-armv7l-cpython-39/cryptography copying src/cryptography/about.py -> build/lib.linux-armv7l-cpython-39/cryptography copying src/cryptography/fernet.py -> build/lib.linux-armv7l-cpython-39/cryptography copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-cpython-39/cryptography copying src/cryptography/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography copying src/cryptography/init.py -> build/lib.linux-armv7l-cpython-39/cryptography creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat copying src/cryptography/hazmat/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat creating build/lib.linux-armv7l-cpython-39/cryptography/x509 copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509 copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509 copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509 copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509 copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509 copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509 copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509 copying src/cryptography/x509/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/x509 creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings copying src/cryptography/hazmat/bindings/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends copying src/cryptography/hazmat/backends/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives copying src/cryptography/hazmat/primitives/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl copying src/cryptography/hazmat/bindings/openssl/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/openssl creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/backends/openssl creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization copying src/cryptography/hazmat/primitives/serialization/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/serialization creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/kdf creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor copying src/cryptography/hazmat/primitives/twofactor/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/twofactor creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers copying src/cryptography/hazmat/primitives/ciphers/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/ciphers creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric copying src/cryptography/hazmat/primitives/asymmetric/init.py -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/primitives/asymmetric running egg_info writing src/cryptography.egg-info/PKG-INFO writing dependency_links to src/cryptography.egg-info/dependency_links.txt writing requirements to src/cryptography.egg-info/requires.txt writing top-level names to src/cryptography.egg-info/top_level.txt reading manifest file 'src/cryptography.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs/_build' warning: no previously-included files found matching 'vectors' warning: no previously-included files matching '' found under directory 'vectors' warning: no previously-included files matching '' found under directory '.github' warning: no previously-included files found matching 'release.py' warning: no previously-included files found matching '.readthedocs.yml' warning: no previously-included files found matching 'dev-requirements.txt' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files found matching 'mypy.ini' warning: no previously-included files matching '*' found under directory '.circleci' adding license file 'LICENSE' adding license file 'LICENSE.APACHE' adding license file 'LICENSE.BSD' adding license file 'LICENSE.PSF' writing manifest file 'src/cryptography.egg-info/SOURCES.txt' /tmp/pip-build-env-cm4qbflo/overlay/lib/python3.9/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'cryptography.hazmat.bindings._rust' as data is deprecated, please list it in packages. !!

      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'cryptography.hazmat.bindings._rust' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'cryptography.hazmat.bindings._rust' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'cryptography.hazmat.bindings._rust' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.

  !!

    check.warn(importable)
  copying src/cryptography/py.typed -> build/lib.linux-armv7l-cpython-39/cryptography
  copying src/cryptography/hazmat/bindings/_openssl.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings
  creating build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-armv7l-cpython-39/cryptography/hazmat/bindings/_rust
  running build_ext
  generating cffi module 'build/temp.linux-armv7l-cpython-39/cryptography.hazmat.bindings._openssl.c'
  creating build/temp.linux-armv7l-cpython-39
  running build_rust

      =============================DEBUG ASSISTANCE=============================
      If you are seeing a compilation error please try the following steps to
      successfully install cryptography:
      1) Upgrade to the latest pip and try again. This will fix errors for most
         users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
      2) Read https://cryptography.io/en/latest/installation/ for specific
         instructions for your platform.
      3) Check our frequently asked questions for more information:
         https://cryptography.io/en/latest/faq/
      4) Ensure you have a recent Rust toolchain installed:
         https://cryptography.io/en/latest/installation/#rust

      Python: 3.9.2
      platform: Linux-5.15.74-v7l+-armv7l-with-glibc2.31
      pip: n/a
      setuptools: 65.5.0
      setuptools_rust: 1.5.2
      rustc: n/a
      =============================DEBUG ASSISTANCE=============================

  error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

  This package requires Rust >=1.48.0.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cryptography Failed to build cryptography ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects