For some reason the System Monitor integration on my system stopped working and is giving me config errors. Just happened one day and I rly cant figure out why??
I get a pretty vague “Unexpected exception importing platform homeassistant.components.systemmonitor.sensor” error.
Anyone have any ideas on how to fix this? Below I have the error log if anyone is good at reading that kind of python mess it would be appreciated. Any contribution is appreciated, Thanks!
Error Log
Logger: homeassistant.loader
Source: components/systemmonitor/sensor.py:14
First occurred: 19:40:11 (5 occurrences)
Last logged: 21:20:19
Unexpected exception importing platform homeassistant.components.systemmonitor.sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/loader.py”, line 681, in get_platform
cache[full_name] = self._import_platform(platform_name)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 698, 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 “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/systemmonitor/sensor.py”, line 14, in
import psutil
File “/usr/local/lib/python3.10/site-packages/psutil/init.py”, line 90, in
from ._compat import PY3 as _PY3
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 879, in exec_module
File “”, line 1012, in get_code
File “”, line 672, in _compile_bytecode
ValueError: bad marshal data (invalid reference)