Amazfit account : SyntaxError: invalid syntax
Closed this issue · 2 comments
Thomas3971 commented
Hi,
the script could not be executed successfully.
I am double checked the dependencies in the readme.md, but I could not found any errors.
File "huami_token.py", line 42
print(f"Getting access token with {self.method} login method...")
^
SyntaxError: invalid syntax
Model: Amazfit Bip S
System: openSuse Tumbleweed.
Any ideas?
Thanks!
Thomas
argrento commented
Hi!
Which version has your python? Please check with python --version
or python3 --version
.
Thomas3971 commented
Hi @argrento ,
thanks for the quick response.
I am found the issue already.
It was necessary to type python3 instead of python to run the script.
python3 huami_token.py --method amazfit --email youremail@example.com --password password --bt_keys
Installed python versions are:
- 3.8.5
- 2.7.18
Operating System: openSuse Tumbleweed