PTST / O365-HomeAssistant

Office 365 integration for Home Assistant
MIT License
69 stars 13 forks source link

Dependencies not being found (but are installed) #106

Open cerebrate opened 3 years ago

cerebrate commented 3 years ago

I'm opening this again because while it's similar to #18, it's not identical to #18, and the workaround for #18 doesn't work here.

Same basic symptoms: error in the log reading

2021-03-02 13:58:53 ERROR (MainThread) [homeassistant.config] Package office_package setup failed. Integration o365 No module named 'O365' (See /config/packages/office365.yaml:3).

However, I can confirm that the O365 module has been downloaded and installed in the /config/deps folder, at /config/deps/deps/lib/python3.8/site-packages/O365, as per the manifest.json, so it is not that HA is failing to install it. Also, the config validates fine despite this error at runtime.

Environment: latest O365-HomeAssistant, installed via HACS, on HA 2021.2.3, running inside a Kubernetes pod (i.e., not under the Hass.io supervisor). Restarting the pod (i.e., a second reboot) does not work as a workaround this time.