【发布时间】:2022-11-04 03:24:02
【问题描述】:
我想在 Raspberry Pi 3B+ 上安装 Google Assistant。我观看了 YouTube 视频并阅读了官方指南: https://developers.google.com/assistant/sdk/guides/service/python/embed/run-sample
而序列终于来到了测试代码,
googlesamples-assistant-pushtotalk --project-id my-dev-project --device-model-id my-model
当然,我在这里写了我的ID
首先它给出了这样的错误
Traceback (most recent call last):
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in <module>
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 29, in <module>
from tenacity import retry, stop_after_attempt, retry_if_exception
File "/home/pi/env/lib/python3.9/site-packages/tenacity/__init__.py", line 292
from tenacity.async import AsyncRetrying
我用这段代码解决了
pip install -U tenacity
但现在它给出了这样的错误
/home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable 'stderr' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
warnings.warn("Global variable '%s' in cdef(): for consistency "
/home/pi/env/lib/python3.9/site-packages/cffi/cparser.py:163: UserWarning: Global variable '__stderrp' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
warnings.warn("Global variable '%s' in cdef(): for consistency "
Error: no such option: --project-id
我找不到什么问题请帮忙
【问题讨论】:
标签: python google-assistant-sdk google-assistant google-assist-api