I had my Beckhoff ADS integration working since a couple of months.
Yesterday I did an update of the core and now none of the ADS sensors is found anymore.
Log says:
Logger: homeassistant.setup
Source: setup.py:162
First occurred: 00:51:36 (1 occurrences)
Last logged: 00:51:36
Setup failed for ads: Unable to import component: Exception importing homeassistant.components.ads
Logger: homeassistant.config
Source: loader.py:627
First occurred: 00:51:30 (289 occurrences)
Last logged: 00:51:36
Platform error: binary_sensor
Platform error: sensor
Platform error: light
Platform error: switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 618, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 635, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/ads/__init__.py", line 10, in <module>
import pyads
File "/usr/local/lib/python3.10/site-packages/pyads/__init__.py", line 12, in <module>
from .ads import open_port, close_port, get_local_address, read_state, \
File "/usr/local/lib/python3.10/site-packages/pyads/ads.py", line 18, in <module>
from .pyads_ex import (
File "/usr/local/lib/python3.10/site-packages/pyads/pyads_ex.py", line 82, in <module>
_adsDLL = ctypes.CDLL(adslib)
File "/usr/local/lib/python3.10/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: Error relocating /usr/local/lib/python3.10/site-packages/pyads/adslib.so: unsupported relocation type 7
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config.py", line 877, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 627, in get_platform
raise ImportError(
ImportError: Exception importing homeassistant.components.ads.binary_sensor
Any suggestions? I did 2 updates as first did not work, so I am not sure anymore if my core-2022.7.5 is the earliest to fail.
SYSTEM INFO:
Version | core-2022.7.5 |
---|---|
Installationstyp | Home Assistant OS |
Entwicklung | false |
Supervisor | true |
Docker | true |
Benutzer | root |
Virtuelle Umgebung | false |
Python-Version | 3.10.5 |
Betriebssystemfamilie | Linux |
Betriebssystem-Version | 5.15.32-v8 |
CPU-Architektur | aarch64 |
Zeitzone | UTC |
Configuration Directory | /config |
ANY ideas?
Thanks,
Mike