This repository enables you to prototype an Alexa Gadget using Raspberry Pi. It includes Python-based software, sample projects, and step-by-step instructional guides that walk you through how to use key features of the Alexa Gadgets Toolkit to create new, engaging customer interactions with gadget devices.
Hello
I am trying to install the example gadget on a rpi zero, I keep getting
from google.protobuf import json_format ModuleNotFoundError: No module named 'google'
Hello I am trying to install the example gadget on a rpi zero, I keep getting from google.protobuf import json_format ModuleNotFoundError: No module named 'google'
make --no-print-directory install-am /bin/mkdir -p '/usr/local/bin' /bin/bash ./libtool --mode=install /usr/bin/install -c client/bluetoothctl monitor/btmon tools/rctest tools/l2test tools/l2ping tools/bccmd tools/bluemoon tools/hex2hcd tools/mpris-proxy tools/btattach '/usr/local/bin' libtool: install: /usr/bin/install -c client/bluetoothctl /usr/local/bin/bluetoothctl libtool: install: /usr/bin/install -c monitor/btmon /usr/local/bin/btmon libtool: install: /usr/bin/install -c tools/rctest /usr/local/bin/rctest libtool: install: /usr/bin/install -c tools/l2test /usr/local/bin/l2test libtool: install: /usr/bin/install -c tools/l2ping /usr/local/bin/l2ping libtool: install: /usr/bin/install -c tools/bccmd /usr/local/bin/bccmd libtool: install: /usr/bin/install -c tools/bluemoon /usr/local/bin/bluemoon libtool: install: /usr/bin/install -c tools/hex2hcd /usr/local/bin/hex2hcd libtool: install: /usr/bin/install -c tools/mpris-proxy /usr/local/bin/mpris-proxy libtool: install: /usr/bin/install -c tools/btattach /usr/local/bin/btattach /bin/mkdir -p '/usr/local/libexec/bluetooth' /bin/bash ./libtool --mode=install /usr/bin/install -c src/bluetoothd obexd/src/obexd '/usr/local/libexec/bluetooth' libtool: install: /usr/bin/install -c src/bluetoothd /usr/local/libexec/bluetooth/bluetoothd libtool: install: /usr/bin/install -c obexd/src/obexd /usr/local/libexec/bluetooth/obexd /bin/mkdir -p '/usr/local/lib/cups/backend' /bin/bash ./libtool --mode=install /usr/bin/install -c profiles/cups/bluetooth '/usr/local/lib/cups/backend' libtool: install: /usr/bin/install -c profiles/cups/bluetooth /usr/local/lib/cups/backend/bluetooth /bin/mkdir -p '/etc/dbus-1/system.d' /usr/bin/install -c -m 644 src/bluetooth.conf '/etc/dbus-1/system.d' /bin/mkdir -p '/usr/share/dbus-1/services' /usr/bin/install -c -m 644 obexd/src/org.bluez.obex.service '/usr/share/dbus-1/services' /bin/mkdir -p '/usr/share/dbus-1/system-services' /usr/bin/install -c -m 644 src/org.bluez.service '/usr/share/dbus-1/system-services' /bin/mkdir -p '/usr/local/share/man/man1' /usr/bin/install -c -m 644 tools/rctest.1 tools/l2ping.1 tools/bccmd.1 tools/btattach.1 tools/hid2hci.1 '/usr/local/share/man/man1' /bin/mkdir -p '/usr/local/share/man/man8' /usr/bin/install -c -m 644 src/bluetoothd.8 '/usr/local/share/man/man8' /bin/mkdir -p '/lib/udev/rules.d' /usr/bin/install -c -m 644 tools/97-hid2hci.rules '/lib/udev/rules.d' /bin/mkdir -p '/lib/systemd/system' /usr/bin/install -c -m 644 src/bluetooth.service '/lib/systemd/system' /bin/mkdir -p '/usr/lib/systemd/user' /usr/bin/install -c -m 644 obexd/src/obex.service '/usr/lib/systemd/user' /bin/mkdir -p '/lib/udev' /bin/bash ./libtool --mode=install /usr/bin/install -c tools/hid2hci '/lib/udev' libtool: install: /usr/bin/install -c tools/hid2hci /lib/udev/hid2hci Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pip Downloading pip-20.3-py2.py3-none-any.whl (1.5 MB) |████████████████████████████████| 1.5 MB 756 kB/s Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 20.2.4 Uninstalling pip-20.2.4: Successfully uninstalled pip-20.2.4 Successfully installed pip-20.3 Python3 package pybluez installing... Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: pybluez in /usr/local/lib/python3.6/site-packages (0.23) Python3 package protobuf installing... Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: protobuf in /usr/local/lib/python3.6/site-packages (3.14.0) Requirement already satisfied: six>=1.9 in /usr/local/lib/python3.6/site-packages (from protobuf) (1.15.0) Python3 package python-dateutil installing... Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: python-dateutil in /usr/local/lib/python3.6/site-packages (2.8.1) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.6/site-packages (from python-dateutil) (1.15.0) Python3 package gpiozero installing... Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: gpiozero in /usr/local/lib/python3.6/site-packages (1.5.1) Requirement already satisfied: colorzero in /usr/local/lib/python3.6/site-packages (from gpiozero) (1.1) Python3 package colorzero installing... Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: colorzero in /usr/local/lib/python3.6/site-packages (1.1) 'agt' pip module installing... Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Obtaining file:///home/pi/Alexa-Gadgets-Raspberry-Pi-Samples/src Installing collected packages: agt Attempting uninstall: agt Found existing installation: agt 1.0 Uninstalling agt-1.0: Successfully uninstalled agt-1.0 Running setup.py develop for agt Successfully installed agt Traceback (most recent call last): File "launch.py", line 204, in
from agt.alexa_gadget import BLE, BT, _TRANSPORT_MODE, _ECHO_BLUETOOTH_ADDRESS
File "/home/pi/Alexa-Gadgets-Raspberry-Pi-Samples/src/agt/init.py", line 29, in
from agt.alexa_gadget import AlexaGadget
File "/home/pi/Alexa-Gadgets-Raspberry-Pi-Samples/src/agt/alexa_gadget.py", line 21, in
from google.protobuf import json_format
ModuleNotFoundError: No module named 'google'