Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HA 2023.6 Broken integration #141

Open
molly200 opened this issue Jun 8, 2023 · 19 comments
Open

HA 2023.6 Broken integration #141

molly200 opened this issue Jun 8, 2023 · 19 comments
Assignees
Labels
bug Something isn't working

Comments

@molly200
Copy link

molly200 commented Jun 8, 2023

Hi,

This integration no longer works with Home Assistant 2023.6 update.
Getting "Platform error alarm_control_panel.bwalarm - Requirements for bwalarm not found: ['ruamel.yaml>=0.17.21']."
Any work around?

Thanks

Repository owner deleted a comment from v966732 Jun 12, 2023
@akasma74 akasma74 self-assigned this Jun 12, 2023
@akasma74 akasma74 added the bug Something isn't working label Jun 12, 2023
@akasma74
Copy link
Owner

akasma74 commented Jun 12, 2023

Could you download this file into your HA_folder/custom_cmoponents/bwalarm and restart your HA to see if it helps?

@akasma74
Copy link
Owner

@molly200 ?

@jes1417
Copy link

jes1417 commented Jun 14, 2023

Could you download this file into your HA_folder/custom_cmoponents/bwalarm and restart your HA to see if it helps?

Seeing this with this change

Logger: homeassistant.util.package
Source: util/package.py:107
First occurred: 3:37:44 PM (3 occurrences)
Last logged: 3:37:56 PM

Unable to install package ruamel.yaml>=0.17.22: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-82g343cu/ruamel-yaml-clib_11976391d86145b8ab3b72bcd7eac684/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-dwv5w5i6'] test compiling /tmp/tmp_ruamel_50lfcf82/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_50lfcf82/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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 ruamel.yaml>=0.17.22: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-kkmexi15/ruamel-yaml-clib_e99ac76eb77d4f0e985b2fb0bd158273/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-wwx07cq9'] test compiling /tmp/tmp_ruamel_t7qubfiu/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_t7qubfiu/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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 ruamel.yaml>=0.17.22: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-b_dwlo7p/ruamel-yaml-clib_46b4a78ea73c4369bd5c92ec82961ddc/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-rc19yko7'] test compiling /tmp/tmp_ruamel_ibb1wzhp/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_ibb1wzhp/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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.
Logger: homeassistant.config
Source: config.py:924
First occurred: 3:37:56 PM (1 occurrences)
Last logged: 3:37:56 PM

Platform error: alarm_control_panel - Requirements for bwalarm not found: ['ruamel.yaml>=0.17.22'].

@akasma74
Copy link
Owner

Seeing this with this change

Thanks @jes1417 .
Is it different to the previous version or the error is the same, just curious?

Could you manually edit your HA_folder/custom_cmoponents/bwalarm/manifest.json and edit line 8 so it has only the name, i.e
"requirements": ["ruamel.yaml"],
and check if it helps?

@jes1417
Copy link

jes1417 commented Jun 14, 2023

Error is the same, I am not at my office where this is running so I will check tomorrow morning.

@akasma74
Copy link
Owner

@jes1417 thanks, it would be very useful

@jes1417
Copy link

jes1417 commented Jun 19, 2023

Still issues with the changes

Logger: homeassistant.util.package
Source: util/package.py:107
First occurred: 11:08:34 AM (3 occurrences)
Last logged: 11:08:47 AM

Unable to install package ruamel.yaml: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-qcmenaxe/ruamel-yaml-clib_e58958b70aed46b7bf6a05843f03e91e/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-vt5t6ci2'] test compiling /tmp/tmp_ruamel_ngrbyzko/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_ngrbyzko/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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 ruamel.yaml: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-7okwojsk/ruamel-yaml-clib_bf70b3fc67e147c09422d04ef42bbbdd/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-uhsxn6uj'] test compiling /tmp/tmp_ruamel_wtdbvsoi/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_wtdbvsoi/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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 ruamel.yaml: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-dydblwhz/ruamel-yaml-clib_7ee847ecba754298b8e6992cc29b3102/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-29mog9yi'] test compiling /tmp/tmp_ruamel_yjaal9ds/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_yjaal9ds/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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.
Logger: homeassistant.config
Source: config.py:924
First occurred: 11:08:47 AM (1 occurrences)
Last logged: 11:08:47 AM

Platform error: alarm_control_panel - Requirements for bwalarm not found: ['ruamel.yaml'].

@jes1417
Copy link

jes1417 commented Jun 19, 2023

wonder if this breaking change is the issue

Python
All Home Assistant versions, of which the Home Assistant project manages the Python version for you, have been upgraded to Python 3.11. This affects the following installation types:

Home Assistant Operating System
Home Assistant Container
Home Assistant Supervised
This might affect you when using custom integrations, as those must be compatible with Python 3.11.

@QkulleQ
Copy link

QkulleQ commented Jul 11, 2023

Hi, any news on this? A work around perhaps?

@akasma74
Copy link
Owner

Guys, I'm sorry but there's still no solution to that.
I'm looking into it but it would be great to know what HA core team made as it has nothing to do with the integration itself, it just no longer has access to the ruamel library that is required to work with yaml files.

@QkulleQ
Copy link

QkulleQ commented Jul 12, 2023

@akasma74 Thanks for the heads up!

@jes1417
Copy link

jes1417 commented Jul 14, 2023

Just restarted my instance still running 2023.5.4 and now the alarm won't start on the old release.

New log error

Logger: homeassistant.util.package
Source: util/package.py:107
First occurred: 9:00:37 PM (3 occurrences)
Last logged: 9:00:45 PM

Unable to install package ruamel.yaml: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-h9hnw0le/ruamel-yaml-clib_79e3292f66244a0b832ff10f460e2978/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-t6duo_r3'] test compiling /tmp/tmp_ruamel_yay_5tb1/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_yay_5tb1/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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. [notice] A new release of pip is available: 23.1 -> 23.1.2 [notice] To update, run: pip install --upgrade pip
Unable to install package ruamel.yaml: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-q9yeh6cu/ruamel-yaml-clib_5c0c7c3288f5400793b1644e573b970a/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-t5ybfgef'] test compiling /tmp/tmp_ruamel_jl4eri8v/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_jl4eri8v/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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. [notice] A new release of pip is available: 23.1 -> 23.1.2 [notice] To update, run: pip install --upgrade pip
Unable to install package ruamel.yaml: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] sys.argv ['/tmp/pip-install-us3c4wrk/ruamel-yaml-clib_75fa667b0a234a9096fa061115656cb2/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-xk9fjtpu'] test compiling /tmp/tmp_ruamel_io3c0ozy/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_io3c0ozy/test_ruamel_yaml.c Exception: command 'gcc' failed: No such file or directory [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. [notice] A new release of pip is available: 23.1 -> 23.1.2 [notice] To update, run: pip install --upgrade pip

@akasma74
Copy link
Owner

akasma74 commented Jul 15, 2023

Just restarted my instance still running 2023.5.4 and now the alarm won't start on the old release.

@jes1417 Earlier you posted a very similar log, did you get it with a newer HA version?
Btw, how do you switch between HA versions (if any)?
Are you saying that now the alarm won't start even with the HA version it used to start?
But what changed?
From the errors I can see that the issue is with gcc being not found/accessible to compile some tests - maybe an issue with paths?
Very odd..

@jes1417
Copy link

jes1417 commented Jul 15, 2023

Just restarted my instance still running 2023.5.4 and now the alarm won't start on the old release.

@jes1417 Earlier you posted a very similar log, did you get it with a newer HA version?
Btw, how do you switch between HA versions (if any)?
Are you saying that now the alarm won't start even with the HA version it used to start?
But what changed?
From the errors I can see that the issue is with gcc being not found/accessible to compile some tests - maybe an issue with paths?
Very odd..

Yes all I did was restart, it's still running in a docker with the release appended at the end.

image: "ghcr.io/home-assistant/home-assistant:2023.5.0"

@nnhhuu
Copy link

nnhhuu commented Sep 24, 2023

Guys, I'm sorry but there's still no solution to that. I'm looking into it but it would be great to know what HA core team made as it has nothing to do with the integration itself, it just no longer has access to the ruamel library that is required to work with yaml files.

@akasma74 i found in my log this

2023-09-24 17:10:52.341 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package ruamel.yaml>=0.17.22: error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
sys.argv ['/tmp/pip-install-fq8p67xv/ruamel-yaml-clib_88c56941c449499299028f769f6e009f/setup.py', 'egg_info', '--egg-base', '/tmp/pip-pip-egg-info-rgeie57e']
test compiling /tmp/tmp_ruamel_odb2aapp/test_ruamel_yaml.c -> test_ruamel_yaml compile error: /tmp/tmp_ruamel_odb2aapp/test_ruamel_yaml.c
Exception: command 'gcc' failed: No such file or directory
[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.

it was working until yesterday, i haven't changed the version of my container, it still 2023.8, (last update was a month ago).

i just want to add some information to see if that gives you an idea of what is happening...

thank you

@nnhhuu
Copy link

nnhhuu commented Sep 24, 2023

i solved (temporally) the problem, HA by default is trying to install the last version (0.17.32) that i don't know why it does not compile... so i went to the container and install the version that we needed (0.17.22), restart HA container and it works....

docker exec -it homeassistant bash
pip install ruamel.yaml==0.17.22
exit
docker restart homeassistant

now, don't touch the container, don't update, don't change the version....

hope it helps....

@akasma74
Copy link
Owner

akasma74 commented Sep 25, 2023

@nnhhuu thanks for sharing, it sounds interesting.
If ruamel 0.17.22 installs properly, I'd assume that changing line 8 of this file to
"requirements": ["ruamel.yaml==0.17.22"],
should do the same job.
Can anyone try it @jes1417 @QkulleQ @molly200?
I also think that if it would work, there will be no issues with touching the container, updating HA etc as the issue is with ruamel versions only.

@nnhhuu
Copy link

nnhhuu commented Sep 25, 2023

@nnhhuu thanks for sharing, it sounds interesting. If ruamel 0.17.22 installs properly, I'd assume that changing line 8 of this file should do the same job. Can anyone try it @jes1417 @QkulleQ @molly200? I also think that if it would work, there will be no issues with touching the container, updating HA etc as the issue is with ruamel versions only.

@akasma74 i tested with this manifest.json and it works,

{
"domain": "bwalarm",
"name": "BWAlarm (ak74 edition)",
"documentation": "https://github.com/akasma74/Hass-Custom-Alarm",
"dependencies": [],
"after_dependencies": ["mqtt"],
"codeowners": ["@akasma74"],
"requirements": ["ruamel.yaml==0.17.22"],
"version": "1.12.16"
}

**note that im using == in the ruamel.yaml version instead of >=

my docker image version is : homeassistant/home-assistant:2023.9

as you mentioned, using this manifest it should be no problem when you touch the container

thank you

@akasma74
Copy link
Owner

@nnhhuu you did exactly what I wanted you to check, well done (updated my previous post).
That's great, is will do the job until I find out what's wrong with newer ruamel versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants