Reputation: 331
I have tried building the Google Assistant on my Raspberry pi model b3 following this walkthrough https://developers.google.com/assistant/sdk/prototype/getting-started-pi-python/run-sample
Everything went well until I tried starting it with
google-assistant-demo
and I get the following stacktrace
Traceback (most recent call last):
File "/home/pi/env/bin/google-assistant-demo", line 11, in <module>
sys.exit(main())
File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/__main__.py", line 66, in main
with Assistant(credentials) as assistant:
File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/library/assistant.py", line 86, in __init__
self._event_queue = IterableEventQueue()
File "/home/pi/env/local/lib/python2.7/site-packages/google/assistant/library/event.py", line 172, in __init__
super(IterableEventQueue, self).__init__(maxsize=32)
TypeError: must be type, not classobj
I don't even know where to start and have not tried any solutions. What could be causing the exception?
Upvotes: 1
Views: 647
Reputation: 10504
As pointed in the official documentation: The Google Assistant library currently require Python > 3.4.
You can configure a virtual environments using the following commands:
python3 -m venv env
env/bin/python -m pip install --upgrade pip setuptools
source env/bin/activate
Upvotes: 1