Danielhiversen/pySwitchbot

Home Assistant description-file / description_file error

Closed this issue · 1 comments

I upgraded yesterday to Home Assistant 2022.7.2 and now it refuses to reboot because of an error in pySwitchbot.
Apparantly the error is telling that description-file should be named description_file because the - will be deprecated.

This is the error:
Unable to install package PySwitchbot==0.10.0: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [8 lines of output] /usr/local/lib/python3.10/site-packages/setuptools/dist.py:772: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running bdist_wheel running build running build_py Working dir is /tmp/pip-install-lqm00yy_/bluepy_ccd18449a3494108a8f3ea0e4c41109c execute make -C ./bluepy clean error: [Errno 2] No such file or directory: 'make' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for bluepy error: subprocess-exited-with-error × Running setup.py install for bluepy did not run successfully. │ exit code: 1 ╰─> [10 lines of output] /usr/local/lib/python3.10/site-packages/setuptools/dist.py:772: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running install /usr/local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py Working dir is /tmp/pip-install-lqm00yy_/bluepy_ccd18449a3494108a8f3ea0e4c41109c execute make -C ./bluepy clean error: [Errno 2] No such file or directory: 'make' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> bluepy note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

Sorry, not a problem with the pySwitchbot but with BluePy which isn't working anymore in Python 3.10
This is a breaking change for some bluetooth integrations in Home Assistant including the pySwitchbot integration.

https://www.home-assistant.io/blog/2022/07/06/release-20227/#breaking-changes