-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Integration wont load anymore on latest HA update 2023.6.3b #301
Comments
It's aioxmpp bug. We're waiting for upstream to fix https://github.com/horazont/aioxmpp/issues/391 |
Looks like it's actually a Python 3.11.3 regression: https://github.com/horazont/aioxmpp/issues/391#issuecomment-1575137853. Should be fixed in Python 3.11.4 that should be released tomorrow. Hopefully HA will update to it too. |
Looks like HA is already on 3.11.4. And not working for me |
Are you sure? Python 3.11.4 has not even been released yet it seems. |
Python 3.11.4 hasn't been released yet, so impossible that your HA has it. |
It seams that it will take longer to fix it…. |
Would there not be another way to temporarily fix this? until the new python is released? |
3.11.4 is released now. but not for HA looks like they will release 2023.6 today without the python update. |
Mad 😉 |
Let's hope we get a 2023.6.1 fairly soon with Python 3.11.4. 🤞 |
Is there any other (temp) workaround maybe? |
I've been running in this issue. |
Yup in the same boat here, shame as the update has some pretty exciting changes, so hopefully not too long until we can move up. |
I cannot confirm it's a python 3.11.x bug. Traceback (most recent call last): |
HA Core Update 2023.6.1 is showing up as update right now. |
2023.6.1 did not fix this issue as of yet. |
As temporary workaround the python can be updated to 3.11.4 manually ( i have done it on my HA docker image). After this integration works again. But only do it if you know what you are doing, and how to go back if something goes south. |
So the update will be merged soon with 2023.6.2 it should be fixed |
It depends on when it lands, I'm not sure if it will make into 2023.6.2 (or a patch release at all). The linked PR to this issue is for bumping our base images, but we have more changes in the pipeline affecting those (cosign support). Additionally, the linked PR is just the base image, which still needs to be built and shipped (which takes quite some hours). After that, I can start adjusting the Home Assistant base image, once that is tested, approved, build, and shipped I can start upgrading the Home Assistant Core itself, which also needs to be tested, approved, build, and shipped. TL;DR: Don't hold your breath on it being shipped in .2 ../Frenck |
Thanks for keeping us updated and managing expectations! @frenck |
Thank you so much for caring about the issue. May I ask, to include the recording sensors as well. Those have stopped working with a former update Thank you soooo much in advance! |
@schlaufon I think you misunderstand the issue & solution, your request makes no sense to me. Sorry. |
Is that so. Then take my apology. |
@schlaufon I will work on it when I get working docker image ;) |
Any suggestion as to how? With the current hot weather here my temperature inside is not what it's supposed to be. |
I have done the following:
Only do if you have a good quality backup, or you dont mind to start everthying from scratch. (as HA is running, while under it you may exchange python libs which are currently in use. It very easily corrupts your HA database and config, and other thing which may different between our setups.) 12.16.2023: Typo corrections, I should not type long thing late :-) |
one can see, it is possible. |
@Tuningmormota |
Hi there! I am following this thread because my integration has stopped working too, of course, after the 2023.6 update. But I am not sure if I understand it correctly. The issue is due to the python update and there will be another update on HA, maybe not 2023.6.2, which will solve this problem? I think this Bosch integration is a very cool one and I guess the most importend in HA for me. So I am very frustrated right now :) Cheers |
Correct, a Python update between HA 2023.5 and 2023.6 broke this integration. A newer Python version fixes it again, and we're hoping that that Python version will be available in HA 2023.6.2 or a later patch version, but there are no guarantees. The safest course of action in your case right now might be to go back to HA 2023.5 while we wait for the fixed Python version. |
Is there any feedback that a newer python version will be used by homeassistant 2023.7? |
You can downgrade or try this #301 (comment) or wait. |
Am I supposed to understand that? Sorry for my naive question here: if python is a "programming language" and it's code is changed by an update, then I understand it may consist of a different code. How would an update of the language help with an "old" integration? I do not see that python takes care of an "insignificant" application/integration in HA. Please enlighten me. ThanX. |
In this case it seems to have been an bug introduce in python 3.11.3 that changed expecting behavior. This is fixed in python 3.11.4. Since python is an interpreter it can in this case change behavior for how code behaves depending on version of python. But this is a bug and not something that should happen or be expected. |
a good description what to do for manuall upgrading python is the HA Dockerfile: https://github.com/home-assistant/docker-base/blob/master/python/3.11/Dockerfile |
It is not; I would strongly discourage doing that manually. Unless you are an very advanced sysadmin, knowing what you are doing, I would really really strongly recommended staying out of doing things like that. And even if one is... that link you send, makes no sense and is way overcomplicated for the goal. Please note, by recommending things like that, you will get users into a state of breaking their system, as they are not familiar or knowledgable enough to handle such things. The right answer here is: If you need this to work right now, restore a backup of Home Assistant 2023.5 or older (the one you had before upgrading to 2023.6), and wait until a fix is available. ../Frenck |
@frenck if just restoring would work: yes But sometimes it's not the best option. If i try to rollback to 2023.05 i get the following error: "Error during connection setup: [<class 'decimal.ConversionSyntax'>] (retrying in 15 seconds) And i don't want to rollback the DB, this will make me lose my energy board history of the last 3 days. |
If restoring didn't work, did you file an issue? As in, making & restoring backups is extensively tested, and should just work. If not, we should definitely learn from that. It is important to work reliably.
Rolling back is not restoring a backup. Your error is expected, as rolling back is not a supported/implemented thing in Home Assistant. We implement backward compatibility, not forward compatibility (like in this case, you are using a newer database format on an older HA version caused by the rollback). |
regarding newer databaser format: My schema_changes table said v41 changed 2023-04-07, v41 seems to be the latest and already 3 month old? https://github.com/home-assistant/core/blame/dev/homeassistant/components/recorder/db_schema.py (72). due to the unchanged scheme, a rollback should have worked while retaining the db? at least that would be my thought In my special case, upgrading python to v3.11.4 solved my problems, with the slightest inconvenience |
In my case a restore back to 2023.5.6 was not a big issue. So backup/ restore is working as expected. I got another HA Setup running at a different location without the Bosch integration so i could update to take a look for the new stuff. |
@rhehl Rollbacks are not supported, and HA is not designed to work that way. It is not just the database format but also other data formats (e.g., config entries, entity registries, device registries, area registries, and even storage versions for individual integrations, and a bunch more). For that reason, please use backup to restore. |
Good news if you didn't already notice: the upcoming 2023.6.2 will have Python 3.11.4. Thank you very much @frenck! 🙇 |
Yup! @slovdahl! You are welcome. I try to get a release out tomorrow (or at least before the weekend). ../Frenck |
Confirming core update 2023.6.2 fixed this issue! |
Yes its working again now! Thanks to all! |
Looks like it is fixed with 2023.6.2. However, all 'devices' added by this integration are now duplicated in my installation. E.g. , the old Edit: I have resolved it by uninstalling the integration, and then re-adding it again. |
@Didel |
Issue is fixed now, closing it. |
@frenck |
Updated, but heating is still showing as unavailable for me. Rebooted the system and reloaded the integration to no avail. Error:
|
For mee, all went good. Try to restart your heating device or at least the Bosch Gateway. |
Describe the bug
Integration wont load anymore. in the notification i get this message on boot:
The following integrations and platforms could not be set up:
bosch (Show logs)
Please check your config and logs.
To Reproduce
Update to the latest version of HA 2023.6.b3
This is what the log says:
Logger: homeassistant.loader
Source: custom_components/bosch/init.py:12
Integration: bosch (documentation, issues)
First occurred: 23:25:34 (1 occurrences)
Last logged: 23:25:34
Unexpected exception importing component custom_components.bosch
Traceback (most recent call last):
File "/usr/local/lib/python3.11/enum.py", line 260, in set_name
enum_member.value = enum_class.member_type(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioxmpp/xso/model.py", line 2923, in init
self.xso_class = self._create_class()
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioxmpp/xso/model.py", line 2933, in _create_class
self._create_name(),
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aioxmpp/xso/model.py", line 2926, in create_name
return "".join(map(str.title, self.name.split("")))
^^^^^^^^^
AttributeError: 'XSOEnumMixin' object has no attribute 'name'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/bosch/init.py", line 12, in
from bosch_thermostat_client.const import (
File "/usr/local/lib/python3.11/site-packages/bosch_thermostat_client/init.py", line 10, in
from .gateway import gateway_chooser
File "/usr/local/lib/python3.11/site-packages/bosch_thermostat_client/gateway/init.py", line 1, in
from .ivt import IVTGateway, IVTMBLanGateway
File "/usr/local/lib/python3.11/site-packages/bosch_thermostat_client/gateway/ivt.py", line 6, in
from bosch_thermostat_client.connectors import connector_ivt_chooser
File "/usr/local/lib/python3.11/site-packages/bosch_thermostat_client/connectors/init.py", line 2, in
from .ivt import IVTXMPPConnector
File "/usr/local/lib/python3.11/site-packages/bosch_thermostat_client/connectors/ivt.py", line 2, in
import aioxmpp
File "/usr/local/lib/python3.11/site-packages/aioxmpp/init.py", line 101, in
from .errors import ( # NOQA
File "/usr/local/lib/python3.11/site-packages/aioxmpp/errors.py", line 109, in
class ErrorCondition(structs.CompatibilityMixin, xso.XSOEnumMixin, enum.Enum):
File "/usr/local/lib/python3.11/enum.py", line 557, in new
raise exc
File "/usr/local/lib/python3.11/enum.py", line 266, in set_name
raise new_exc
** Debug SCAN **
** IMPORTANT **
Go to Developer tools in Home Assistant, choose Service tab and choose
bosch.debug_scan
Download file to your computer and upload it somewhere eg. https://jsonblob.com/
The text was updated successfully, but these errors were encountered: