mac-zhou / midea-msmart

This is a library to allow communicating to a Midea AC via the Local area network.
MIT License
149 stars 38 forks source link

SyntaxError: invalid syntax when running midea-discover #40

Closed jasongaunt closed 3 years ago

jasongaunt commented 3 years ago

Hi @mac-zhou

I get the following error when I try and run midea-discover:

Traceback (most recent call last):
  File "/usr/local/bin/midea-discover", line 7, in <module>
    from msmart.cli import discover
  File "/usr/local/lib/python3.5/dist-packages/msmart/cli.py", line 3, in <module>
    import click
  File "/usr/local/lib/python3.5/dist-packages/click/__init__.py", line 7, in <module>
    from .core import Argument as Argument
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 95
    f"{hint}. Command {base_command.name!r} is set to chain and"
                                                               ^
SyntaxError: invalid syntax

This is running as root on Ubuntu 16.04.7 LTS with Python 3.5.2, installed using pip3 install msmart.

Please can you advise?

mac-zhou commented 3 years ago

upgrade pip3 install click==7.1.2 and try again

jasongaunt commented 3 years ago

Hi @mac-zhou - this fixed the issue, many thanks ♥