AirCon icon indicating copy to clipboard operation
AirCon copied to clipboard

./query_cli.py: riga 6: errore di sintassi vicino al token non atteso "newline"

Open belladieg opened this issue 5 years ago • 3 comments

Hi i am trying to integrate but it gives me this error when i run query_cli.py

./query_cli.py: riga 6: errore di sintassi vicino al token non atteso "newline" ./query_cli.py: riga 6: `'

the command I send is this

./query_cli.py --user xxxxxxxx --passwd xxxxx--app hisense-eu --config salotto.json --device salotto

belladieg avatar Jun 05 '20 20:06 belladieg

That's strange, line 6 is part of the header comment. Try to prefix your command line with python3.7.

deiger avatar Jun 06 '20 08:06 deiger

python3.7 ./query_cli.py --user xxxx --passwd xxxx--app hisense-eu --config salotto.json --device salotto File "./query_cli.py", line 6 ^ SyntaxError: invalid syntax

my card is an AEH-W4 why can't I?

belladieg avatar Jun 06 '20 10:06 belladieg

How did you download the file? If you use copy-paste, auto-styling can break the syntax. Better enter the raw view, and save the file.

Alternatively you can run:

curl -O https://raw.githubusercontent.com/deiger/AirCon/master/query_cli.py

deiger avatar Jun 06 '20 12:06 deiger