hass-gardena-smart-system: Integration is not working with HA 2024.2
Hi,
The Integration is not working anymore since the Update to Home Assistant 2024.2
Has probably to do with the Upgrade to Python 3.12
Unable to install package py-smart-gardena==1.3.7: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [18 lines of output] /tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/setup.py", line 16, in <module> version=versioneer.get_version(), ^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/versioneer.py", line 1480, in get_version return get_versions()["version"] ^^^^^^^^^^^^^^ File "/tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-hg80z4da/py-smart-gardena_c65ab3786b2d44d5bad64997594cfdcc/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. Unable to install package py-smart-gardena==1.3.7: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [18 lines of output] /tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/setup.py", line 16, in <module> version=versioneer.get_version(), ^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/versioneer.py", line 1480, in get_version return get_versions()["version"] ^^^^^^^^^^^^^^ File "/tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-sa2tee0z/py-smart-gardena_d4c7934301b34171a8e9d4c741f55574/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. Unable to install package py-smart-gardena==1.3.7: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [18 lines of output] /tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/setup.py", line 16, in <module> version=versioneer.get_version(), ^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/versioneer.py", line 1480, in get_version return get_versions()["version"] ^^^^^^^^^^^^^^ File "/tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/versioneer.py", line 1412, in get_versions cfg = get_config_from_root(root) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-6pi22zen/py-smart-gardena_06e87f3da59848c6ad139d99ed79c833/versioneer.py", line 342, in get_config_from_root parser = configparser.SafeConfigParser() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 17 (5 by maintainers)
I updated the upstream library and I will publish a new version tomorrow 😃
Jeremie
Le mer. 7 févr. 2024, 21:54, Jonas @.***> a écrit :
Is it possible to add an option to reload the integration, as it fails from time to time because an authentication issue. Reloading the integration may fix the problem! At the moment a restart of the core is necessary!
Many thanks!
Thanks, I just updated and it works.
Also there are no Error Messages in the Logs anymore.
For my part you could leave the Release Candidate behind and flag this as a regular release 😃
Changing manifest.json to this seems to help: https://github.com/py-smart-gardena/hass-gardena-smart-system/blob/master/custom_components/gardena_smart_system/manifest.json
@mike4001 I had a look into the underlaying library (py-smart-gardena). There is still one issue which is not solved, so it seems that it will take some more time to solve all the problems (2/3 fixed).
Thanks. Worked for me.
I had issues yesterday with travisci which does not work as expected anymore. I migrated to github actions for building the underlying library py-smart-gardena.
I just release a 1.1.0-rc3 version (in beta) that should solve the issue.
Replacing in manifest.json “requirements”: [“py-smart-gardena==1.3.7”] with “requirements”: [“py-smart-gardena==1.3.8”] solves the problem