Work in progress: configuration for running a Home Assistant in containers with systemd and podman on Fedora IoT

Hey @mattdm thanks for posting this and great work. I went through the effort of moving all my services from my raspberry pi to a CentOS Stream 10 box recently, and used this to help get me unstuck as I also moved to using quadlets.

Question for you or anyone running HA in a podman container - have you had any issues with HACS integrations? What I’m seeing is that anything that tries to install a package from pip is failing. The most recent one being uptime-kuma:

ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration uptime_kuma: No module named 'pyuptimekuma'

And similar for the bambu integration:
[homeassistant.setup] Setup failed for custom integration 'bambu_lab': Unable to import component: No module named 'cloudscraper'

In both cases, I can exec into the HA container and run the pip install and it’ll find the packages, so I believe the issue is that HA is not installing the packages correctly

Edit: Of course despite plenty of searching before this, I found an answer shortly after posting :slight_smile:. Seems to be an issue introduced around 2024.10. I used this fix and just added Environment="PYTHONPATH=/config/deps" to my quadlet definition.

Here’s another thread with some more details and other workarounds

1 Like