Recently my HA got broken (story here) and I reinstalled somewhat successfully from backup and have been updating all HA components and addons since. However at some point in the restoration or updating Appdaemon got broken and a script I’ve used for years has stopped working. I did have to edit the appdaemon.yaml to fix secrets.yaml location, but otherwise this is vanilla install.
It looks like all the files are in the right places as far as I can tell:
And requirements.txt has the correct contents:
Apologies for the screenshots, the full code is on GitHub with fake secrets, of course.
HA is running on a Raspberry Pi 4. The various versions:
Add-on version: 0.16.6
You are running the latest version of this add-on.
System: Home Assistant OS 12.3 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2024.6.0
Home Assistant Supervisor: 2024.06.0
But in the HA Logs for Appdaemon I get this -
2024-06-05 23:47:40.576086 WARNING Error: Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/appdaemon/app_management.py", line 1000, in check_app_updates
await utils.run_in_executor(self, self.read_app, mod["name"], mod["reload"])
File "/usr/lib/python3.11/site-packages/appdaemon/utils.py", line 304, in run_in_executor
response = future.result()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/appdaemon/app_management.py", line 783, in read_app
self.modules[module_name] = importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/apps/calendar_reader.py", line 13, in <module>
from google.auth.transport.requests import Request
ModuleNotFoundError: No module named 'google'
It looks like the requirements are not being installed, but this used to work for the past year or more. Any idea what is going wrong now?