Error while implementing google assistant in respeaker core version 2

info about ReSpeaker series products

Moderators: lily.li, violet, seth.welday

Post Reply
venthanthiru
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Mon Aug 27, 2018 8:30 pm

Error while implementing google assistant in respeaker core version 2

Post by venthanthiru » Wed Aug 29, 2018 5:18 pm

hello
I just got respeaker core version 2. and I try to implement google assistant in that. i followed the instruction on the seedwiki page, every this goes well until I run the google assistant in it. this is the error

Traceback (most recent call last):
File "/usr/local/bin/googlesamples-assistant-respeakerd", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googleassistant_respeakerd/assist_with_respeakerd.py", line 402, in main
pub = system_bus.publish("io.respeaker.respeakerd", dbus_obj)
File "/usr/local/lib/python2.7/dist-packages/pydbus/publication.py", line 42, in publish
return Publication(self, bus_name, *objects)
File "/usr/local/lib/python2.7/dist-packages/pydbus/publication.py", line 35, in __init__
self._at_exit(bus.request_name(bus_name, allow_replacement=allow_replacement, replace=replace).__exit__)
File "/usr/local/lib/python2.7/dist-packages/pydbus/request_name.py", line 29, in request_name
return NameOwner(self, name, allow_replacement, replace)
File "/usr/local/lib/python2.7/dist-packages/pydbus/request_name.py", line 8, in __init__
res = bus.dbus.RequestName(name, flags)
File "/usr/local/lib/python2.7/dist-packages/pydbus/proxy_method.py", line 75, in __call__
0, timeout_to_glib(timeout), None).unpack()
GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.28" is not allowed to own the service "io.respeaker.respeakerd" due to security policies in the configuration file (9)

can anyone help me to solve this?

bill.yu
Junior-6
Junior-6
Posts: 653
Joined: Mon Apr 02, 2018 11:05 am

Re: Error while implementing google assistant in respeaker core version 2

Post by bill.yu » Wed Aug 29, 2018 7:04 pm

Hi there,

Do you follow https://github.com/respeaker/googleassistant_respeakerd? thanks.

best rgds
Bill

venthanthiru
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Mon Aug 27, 2018 8:30 pm

Re: Error while implementing google assistant in respeaker core version 2

Post by venthanthiru » Tue Sep 11, 2018 1:11 pm

yes I followed this link everything well but when running google assistant it gave to the above error what is the problem??

deric
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Fri Oct 05, 2018 11:18 am

Re: Error while implementing google assistant in respeaker core version 2

Post by deric » Fri Oct 05, 2018 11:18 am

Did you ever find a resolution for this? I'm fighting the same error

bill.yu
Junior-6
Junior-6
Posts: 653
Joined: Mon Apr 02, 2018 11:05 am

Re: Error while implementing google assistant in respeaker core version 2

Post by bill.yu » Mon Jun 17, 2019 10:28 pm

Hi there ~

The root cause is the google-auth-oauthlib[tool]. it updated and not compatible any more. So we have to define the version as 0.2.

Code: Select all

sudo python -m pip install --upgrade google-auth-oauthlib[tool]==0.2

We updated the wiki and it can work now. thanks.

http://wiki.seeedstudio.com/Google_Assistant/

Post Reply