Hi, @mac_zhou
After update to msmart-0.1.20
Update msmart
>pip3 uninstall msmart
Found existing installation: msmart 0.1.19
Uninstalling msmart-0.1.19:
Would remove:
c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\msmart-0.1.19.dist-info\*
c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\msmart\*
c:\users\albina\appdata\local\programs\python\python38-32\scripts\midea-discover.exe
Proceed (y/n)? y
Successfully uninstalled msmart-0.1.19
C:\WINDOWS\system32>pip3 install msmart
Collecting msmart
Downloading msmart-0.1.20-py3-none-any.whl (14 kB)
Requirement already satisfied: pycryptodome in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from msmart) (3.9.7)
Installing collected packages: msmart
Successfully installed msmart-0.1.20
>pip3 install msmart
Collecting msmart
Downloading msmart-0.1.20-py3-none-any.whl (14 kB)
Requirement already satisfied: pycryptodome in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from msmart) (3.9.7)
Installing collected packages: msmart
Successfully installed msmart-0.1.20
Output:
midea-discover
>midea-discover
Traceback (most recent call last):
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\albina\AppData\Local\Programs\Python\Python38-32\Scripts\midea-discover.exe\__main__.py", line 7, in <module>
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\msmart\cli.py", line 49, in discover
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
AttributeError: module 'socket' has no attribute 'SO_REUSEPORT'
or:
midea-discover -d
>midea-discover -d
INFO:msmart.cli:Debug mode active
Traceback (most recent call last):
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\albina\AppData\Local\Programs\Python\Python38-32\Scripts\midea-discover.exe\__main__.py", line 7, in <module>
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages\msmart\cli.py", line 49, in discover
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
AttributeError: module 'socket' has no attribute 'SO_REUSEPORT'
What’s my mistake? Thanks.