argrento / huami-token

Script to obtain watch or band bluetooth token from Huami servers
MIT License
412 stars 94 forks source link

Amazfit account : SyntaxError: invalid syntax #20

Closed Thomas3971 closed 4 years ago

Thomas3971 commented 4 years ago

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 4 years ago

Hi!

Which version has your python? Please check with python --version or python3 --version.

Thomas3971 commented 4 years ago

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:

Operating System: openSuse Tumbleweed