I am following the directions on the web page:
Everything works until I reach the following line and error message.
Suggestions?
Yoav
(env) pi@raspberrypi:~ $ python -m pip install --upgrade google-assistant-sdk[samples]==0.5.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting google-assistant-sdk[samples]==0.5.1
Using cached https://files.pythonhosted.org/packages/47/26/b405a0236ea5dd128f4b9c00806f4c457904309e1a6c60ec590e46cc19c4/google_assistant_sdk-0.5.1-py2.py3-none-any.whl
Collecting google-auth-oauthlib[tool]>=0.1.0 (from google-assistant-sdk[samples]==0.5.1)
Using cached https://files.pythonhosted.org/packages/74/a2/1323b1bce9935ac948cd4863509de16cf852cd80b12dd29e648c65fea93d/google_auth_oauthlib-0.4.0-py2.py3-none-any.whl
Collecting google-assistant-grpc==0.2.1; extra == “samples” (from google-assistant-sdk[samples]==0.5.1)
Using cached https://files.pythonhosted.org/packages/4b/5d/50dbb8197961acf8a4339e8950e0110159456c4ef48234751d1b5f2e919b/google_assistant_grpc-0.2.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: pathlib2<3,>=2.3.0; extra == “samples” in ./env/lib/python3.6/site-packages (from google-assistant-sdk[samples]==0.5.1) (2.3.3)
Collecting click<7,>=6.7; extra == “samples” (from google-assistant-sdk[samples]==0.5.1)
Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Collecting futures<4,>=3.1.1; extra == “samples” (from google-assistant-sdk[samples]==0.5.1)
Using cached https://www.piwheels.org/simple/futures/futures-3.1.1-py3-none-any.whl
Requirement already satisfied, skipping upgrade: urllib3[secure]<2,>=1.21; extra == “samples” in ./env/lib/python3.6/site-packages (from google-assistant-sdk[samples]==0.5.1) (1.25.3)
Collecting tenacity<5,>=4.1.0; extra == “samples” (from google-assistant-sdk[samples]==0.5.1)
Using cached https://files.pythonhosted.org/packages/75/1b/46a6a7b7c2b16811665ea09b7e63e7e6b7f9b5dedf2d0ba67e029668403c/tenacity-4.12.0-py2.py3-none-any.whl
Collecting sounddevice<0.4,>=0.3.7; extra == “samples” (from google-assistant-sdk[samples]==0.5.1)
Using cached https://files.pythonhosted.org/packages/d1/f2/7cb487ac7171dfade8af7a368bd8806ecff82016f4ac9894835cd7de9ecc/sounddevice-0.3.13-py2.py3-none-any.whl
Collecting requests-oauthlib>=0.7.0 (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.5.1)
Using cached https://files.pythonhosted.org/packages/c2/e2/9fd03d55ffb70fe51f587f20bcf407a6927eb121de86928b34d162f0b1ac/requests_oauthlib-1.2.0-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: google-auth in ./env/lib/python3.6/site-packages (from google-auth-oauthlib[tool]>=0.1.0->google-assistant-sdk[samples]==0.5.1) (1.6.3)
Collecting grpcio>=1.3.5 (from google-assistant-grpc==0.2.1; extra == “samples”->google-assistant-sdk[samples]==0.5.1)
Downloading https://files.pythonhosted.org/packages/28/3d/eff8fe5948376253d18721c965e9b0077a6e2bf95e4619415947a17b9780/grpcio-1.21.1-cp36-cp36m-linux_armv7l.whl (11.2MB)
|████████████████████████████████| 11.2MB 7.4MB/s
Collecting googleapis-common-protos>=1.5.2 (from google-assistant-grpc==0.2.1; extra == “samples”->google-assistant-sdk[samples]==0.5.1)
Downloading https://files.pythonhosted.org/packages/eb/ee/e59e74ecac678a14d6abefb9054f0bbcb318a6452a30df3776f133886d7d/googleapis-common-protos-1.6.0.tar.gz
Requirement already satisfied, skipping upgrade: six in ./env/lib/python3.6/site-packages (from pathlib2<3,>=2.3.0; extra == “samples”->google-assistant-sdk[samples]==0.5.1) (1.12.0)
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/c2/95/f43d02315f4ec074219c6e3124a87eba1d2d12196c2767fadfdc07a83884/cryptography-2.7.tar.gz
Installing build dependencies … error
ERROR: Complete output from command /home/pi/env/bin/python /home/pi/env/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-553ata7s/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>=40.6.0’ wheel ‘cffi>=1.8,!=1.11.3; python_implementation != ‘"’"‘PyPy’"’"’’:
ERROR: Traceback (most recent call last):
File “/usr/local/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/usr/local/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/pi/env/lib/python3.6/site-packages/pip/main.py”, line 16, in
from pip._internal import main as _main # isort:skip # noqa
File “/home/pi/env/lib/python3.6/site-packages/pip/_internal/init.py”, line 4, in
import locale
File “/usr/local/lib/python3.6/locale.py”, line 16, in
import re
File “/usr/local/lib/python3.6/re.py”, line 142, in
class RegexFlag(enum.IntFlag):
AttributeError: module ‘enum’ has no attribute ‘IntFlag’
ERROR: Command “/home/pi/env/bin/python /home/pi/env/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-553ata7s/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>=40.6.0’ wheel 'cffi>=1.8,!=1.11.3; python_implementation != '”’"‘PyPy’"’"’’" failed with error code 1 in None