DietPi version |
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
Kernel version |
Linux MagicCube 5.15.48-sunxi #22.05.3 SMP Wed Jun 22 07:35:10 UTC 2022 armv7l GNU/Linux
SBC model |
echo $G_HW_MODEL_NAMEor (EG: RPi3)
NanoPi Neo and NanoPi M1
Power supply used | (EG: 5V 1A RAVpower)
SD card used | (EG: SanDisk ultra)
- Software title | (EG: Nextcloud)
home assistant, pyatv
- Was the software title installed freshly or updated/migrated?
no, core install
- Can this issue be replicated on a fresh installation of DietPi?
← If you sent a “dietpi-bugreport”, please paste the ID here →
- Bug report ID |
- stock install home assistant on fresh copy of DietPi on SBC model
- install Apple TV integration
Home Assistant should auto discover Apple TV’s on the network.
I Receive this error when trying to discover apple tv on Armv71 (NanoPi Neo with H3). This seems to happen only on the two boards that are running the H3 processor. I have an Odroid C2, C4 and no issues there. Things run from stock install.
There are similar posts out there which led me to the possible solution
// This is the exact error I receive
DietPi Home Assistant: ImportError: /mnt/dietpi_userdata/homeassistant/deps/lib/python3.9/site-packages/_miniaudio.abi3.so: undefined symbol: __atomic_load_8
//I took these steps to fix the issue. Once done, the fix survived a home assistant update and dietpi version update.
//stop home assistant
systemctl stop home-assistant.service
//Log in as homeassistant
sudo -u homeassistant bash
//Change to /srv/homeassistant (with “cd”) in this case it’s diepti specific folder
//remove _miniaudio (wihtout removing this, the same issue arises even if the compile is done)
//Activate the virtual environment (“source bin/activate”)
pip install --ignore-installed miniaudio --no-binary :all:
//It takes a while for the compile to finish!
//Log back in as root
//Remove .storage folder, database and log files from /mnt/dietpi_userdata/homeassistant/ for a fresh start
rm -rf /mnt/dietpi_userdata/homeassistant/.storage
rm /mnt/dietpi_userdata/homeassistant/db /mnt/dietpi_userdata/homeassistant/log
//start home assistant
systemctl start home-assistant.service
//Initialize Home Assistant from web UI