Respeaker Core v2.0 with Google Assistant

I am using Respeaker core v2.0 with Google Assistant and trying to run the below demo:
http://wiki.seeedstudio.com/Google_Assistant/
I am referring to the steps involved in the above links. After generating the credentials and providing access to the model. I have installed the Respeakerd which is the last step of the above documentation and also cloned the GitHub repo. But when I am giving the below command:
sudo python setup.py install
I am getting this error:

error: click 7.1.1 is installed but click<7,>=6.7; extra == "samples" is required by set(['google-assistant-sdk'])


And finally when I am trying to activate the google assistant I am getting this output as below:

   Traceback (most recent call last):
  File "/usr/local/bin/googlesamples-assistant-respeakerd", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/respeaker/.local/lib/python2.7/site-packages/pkg_resources/__init_                                                                             _.py", line 3251, in <module>
    @_call_aside
  File "/home/respeaker/.local/lib/python2.7/site-packages/pkg_resources/__init_                                                                             _.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/home/respeaker/.local/lib/python2.7/site-packages/pkg_resources/__init_                                                                             _.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/respeaker/.local/lib/python2.7/site-packages/pkg_resources/__init_                                                                             _.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/respeaker/.local/lib/python2.7/site-packages/pkg_resources/__init_                                                                             _.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/respeaker/.local/lib/python2.7/site-packages/pkg_resources/__init_                                                                             _.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (google-auth-oauthlib 0.4.1 (/home/resp                                                                             eaker/.local/lib/python2.7/site-packages), Requirement.parse('google-auth-oauthl                                                                             ib<0.3,>=0.1.0; extra == "samples"'), set(['google-assistant-sdk']))

I don’t know where am I going wrong. Can you please help me fix this?

There is a problem with the dependency of the google-assistant-sdk.The problem is on the SDK side. @manishabiswas

I understand that. I have two more question :slight_smile:

  1. In Google Assistant Set-Up guide it is mentioned that we need to create a python virtual environment and then try installing the Google Assistant SDK but in the Respeaker documentation its mention that respeaker use the pydbus library, which depends on the gi.repository library, it’s not easy to install gi.repository in a python virtual env. And the system of ReSpeaker has this library builtin. So it is advised to skip the python virutal env setup. Do you think skipping the virtual env setup can be an issue?
  2. Will using python 2.7 be an issue ?

I am having the exact same issue, and am also using Python 2.7. While I understand that the issue seems to be the discrepancy between the Google SDK requiring Click 6.7 and that Click 7.1.1 is installed, is there any way to temporarily fix this on the ReSpeaker side - perhaps by uninstalling Click 7.1.1. and replacing it with Click 6.7? …Or would this cause other malfunctions?
If so, how could this be done? While experienced as a software engineer, I am quite new to the world of Linux and not sure how to proceed with such an uninstall/reinstall sequence. Any help would be appreciated.

Check your previous project to find what depends on click 7.1.1, if it can accept click 6, then uninstall click 7.1.1 first

sudo pip uninstall click

then download google-assistant-sdk wheel from here

install the wheel

sudo python -m pip install google_assistant_sdk-0.6.0-py2.py3-none-any.whl

install further dependents of google-assistant-sdk

sudo python -m pip install --upgrade google-assistant-sdk[samples]

then back to the wiki, before do sudo python setup.py install , we manually remove the deps from requirements.txt, left only pydbus, now requirements.txt looks like this

respeaker@v2:~/googleassistant_respeakerd$ cat requirements.txt
#google-assistant-sdk[samples]
#google-auth-oauthlib[tool]
pydbus>=0.6.0,<1

then go ahead sudo python setup.py install

I don’t think downgrade click from 7 to 6 may cause other malfunction to ReSpeaker related project / demo , we use basic functionalities of click that persist along 6 and 7.
Regarding how to isntall and uninstall / downgrade python packages, you can get started with https://pip.pypa.io/en/stable/user_guide/#user-guide or https://pip.pypa.io/en/stable/reference/pip_uninstall/#pip-uninstall.

Hi Jack,
Thanks very much for the directions, I will try what you suggest!

Very kind regards,
Will