我正在尝试在我的Windows计算机上运行google助手,并且一直在关注此指南:XDA developers guide
当我跑步时:
python -m googlesamples.assistant.grpc.pushtotalk
然后按Enter键发送命令我收到以下错误:
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\Python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python36\lib\site-packages\googlesamples\assistant\grpc\pushtotalk.py", line 328, in <module>
main()
File "C:\Program Files\Python36\lib\site-packages\click\core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "C:\Program Files\Python36\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Program Files\Python36\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\googlesamples\assistant\grpc\pushtotalk.py", line 317, in main
continue_conversation = assistant.converse()
File "C:\Program Files\Python36\lib\site-packages\tenacity\__init__.py", line 87, in wrapped_f
return r.call(f, *args, **kw)
File "C:\Program Files\Python36\lib\site-packages\tenacity\__init__.py", line 235, in call
do = self.iter(result=result, exc_info=exc_info)
File "C:\Program Files\Python36\lib\site-packages\tenacity\__init__.py", line 194, in iter
return fut.result()
File "C:\Program Files\Python36\lib\concurrent\futures\_base.py", line 425, in result
return self.__get_result()
File "C:\Program Files\Python36\lib\concurrent\futures\_base.py", line 384, in __get_result
raise self._exception
File "C:\Program Files\Python36\lib\site-packages\tenacity\__init__.py", line 238, in call
result = fn(*args, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\googlesamples\assistant\grpc\pushtotalk.py", line 110, in converse
self.deadline):
File "C:\Program Files\Python36\lib\site-packages\grpc\_channel.py", line 349, in __next__
return self._next()
File "C:\Program Files\Python36\lib\site-packages\grpc\_channel.py", line 343, in _next
raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAUTHENTICATED, Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com
/identity/sign-in/web/devconsole-project.)>
答案 0 :(得分:1)
你只需要等到他们解决这个问题,这个错误就在Google的一边。以下是他们在github上发布的问题:
https://github.com/googlesamples/assistant-sdk-python/issues/138