I'm a newbie in python.
I try to run Alexa with my ReSpeaker Mic and I'm following all the steps from https://github.com/respeaker/avs. But I have a bunch of errors when I try to run alexa-auth
.
The issues are the following :
Traceback (most recent call last):
File "/home/lilitsve/.local/bin/alexa-auth", line 7, in <module>
from avs.auth import main
File "/home/lilitsve/.local/lib/python2.7/site-packages/avs/auth.py", line 9, in <module>
import tornado.httpserver
File "/home/lilitsve/.local/lib/python2.7/site-packages/tornado/httpserver.py", line 144
def __init__(self, *args: Any, **kwargs: Any) -> None:
^
SyntaxError: invalid syntax
I found some similar issues which suggested to use python3 instead of python2. On my computer (Linux Ubuntu), I have python2.7, python3 and python3.7 installed, but I don't know how to switch to python3 and make my code use the python3 version. But still, I'm not sure my problem is coming from the python version (need confirmation)
Any help would be greatly appreciated !