Raspberry pi B3上的Google助手无法启动

时间:2017-05-19 03:28:36

标签: python raspberry-pi google-assistant-sdk

在本演练结束后,我尝试在我的Raspberry pi型号b3上构建Google智能助理 https://developers.google.com/assistant/sdk/prototype/getting-started-pi-python/run-sample

一切顺利,直到我尝试用

启动它
google-assistant-demo

我得到以下stacktrace

    Traceback (most recent call last):
  File "/home/pi/env/bin/google-assistant-demo", line 11, in <module>
    sys.exit(main())
  File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/__main__.py", line 66, in main
    with Assistant(credentials) as assistant:
  File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/library/assistant.py", line 86, in __init__
    self._event_queue = IterableEventQueue()
  File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/library/event.py", line 172, in __init__
    super(IterableEventQueue, self).__init__(maxsize=32)
TypeError: must be type, not classobj

我甚至不知道从哪里开始,也没有尝试任何解决方案。什么可能导致异常?

1 个答案:

答案 0 :(得分:1)

正如official documentation所指出: Google智能助理库目前需要Python > 3.4

您可以使用以下命令配置virtual environments

python3 -m venv env
env/bin/python -m pip install --upgrade pip setuptools
source env/bin/activate