Found a zeroW in one of my boxes. Installed bookworm and then the ha-mqtt-discoverable lib.
Install ha-mqtt-discoverable takes long time. One part of it, "Building wheels for collected packages: pydantic-core", uses a "rustc" compiler which runs slow.
On a Pi5, it took only a few seconds and succeeded.Monitoring the Pi zero showed that one of the rustc processes takes more than 40min cpu time. Increasing the swap space to 2GB allowed the process to allocate more memory and thus extended the runtime, but finally failed too. When failing, network connection stopped. No useful messages in journalctl after reboot.
I would upgrade the Pi zero to a more powerful model with more memory.
Code:
pi@zero:~/test $ python3 -m venv venvOn a Pi5, it took only a few seconds and succeeded.
Code:
pi@zero:~/test $ venv/bin/pip install ha-mqtt-discoverableI would upgrade the Pi zero to a more powerful model with more memory.
Statistics: Posted by ghp — Sun Jun 01, 2025 8:21 pm