Component fails to start since upgrading to 2024.12.x #714
Replies: 4 comments 2 replies
-
Any thoughts? Getting the same if i upgrade HA to the 2025.1.x beta's also |
Beta Was this translation helpful? Give feedback.
-
I have not seen any issues with 2024.12.3, am yet to upgrade to 25.1.0. |
Beta Was this translation helpful? Give feedback.
-
I'm not a python developer, but it seems in this release they updated the version of pymodbus (home-assistant/core#133175, and its an incompatibility in that library causing us issues :-( |
Beta Was this translation helpful? Give feedback.
-
Closing in favour of #718 |
Beta Was this translation helpful? Give feedback.
-
Since upgrading to 2024.12.x (and even the 2025.1.x beta's) the FoxESS modbus compnent fails to load with the below error.
Restoring back to 2024.11.3 and everything is working again.... Any ideas? It seem to only be me as no one else has reported it, but I can't see how I can be the only one :)
For clarity; I am running Home Assistant as a VM on Proxmox.
`Logger: homeassistant.setup
Source: setup.py:334
First occurred: 04:00:50 (1 occurrences)
Last logged: 04:00:50
Setup failed for custom integration 'foxess_modbus': Unable to import component: cannot import name 'ModbusResponse' from 'pymodbus.pdu' (/usr/local/lib/python3.13/site-packages/pymodbus/pdu/init.py)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1015, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._get_component, True
^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1075, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/foxess_modbus/init.py", line 20, in
from .client.modbus_client import ModbusClient
File "/config/custom_components/foxess_modbus/client/modbus_client.py", line 16, in
from pymodbus.pdu import ModbusResponse
ImportError: cannot import name 'ModbusResponse' from 'pymodbus.pdu' (/usr/local/lib/python3.13/site-packages/pymodbus/pdu/init.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1035, in async_get_component
self._component_future.result()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1027, in async_get_component
comp = self._get_component()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1075, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/foxess_modbus/init.py", line 20, in
from .client.modbus_client import ModbusClient
File "/config/custom_components/foxess_modbus/client/modbus_client.py", line 16, in
from pymodbus.pdu import ModbusResponse
ImportError: cannot import name 'ModbusResponse' from 'pymodbus.pdu' (/usr/local/lib/python3.13/site-packages/pymodbus/pdu/init.py)`
Beta Was this translation helpful? Give feedback.
All reactions