Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

Python • Re: troubles using ha-mqtt-discoverable python module (BOOKWORM on Pi zero w)

$
0
0
Found a zeroW in one of my boxes. Installed bookworm and then the ha-mqtt-discoverable lib.

Code:

pi@zero:~/test $ python3 -m venv venv
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.

Code:

pi@zero:~/test $ venv/bin/pip install ha-mqtt-discoverable
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.

Statistics: Posted by ghp — Sun Jun 01, 2025 8:21 pm



Viewing all articles
Browse latest Browse all 8015

Trending Articles