我想在Raspberry Pi 3B+上安装谷歌助理。我观看了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当然,我在这里写了我的身份证
首先,它犯了这样一个错误
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,我找不到问题所在,请帮助
发布于 2022-11-03 19:24:02
我只使用googlesamples-助手-推送和解决问题。
https://stackoverflow.com/questions/73992779
复制相似问题