so, i got the pi up and running and now the last step is the ha-mqtt-discoverable module
i cant install it with pip and not via apt either, to me it seems is not an "official" packaged module
i can of course use the --break-system-packages to get past it but then i'm just meet with an illegal instruction error
doing the virtual env thing as suggested escapes my mind
so far i have gotten this far:
virtualenv -p /usr/bin/python3 testpip
source testpip/bin/activate
pip3 install ha-mqtt-discoverable
the last step takes more than an hour and the ssh connection breaks before its complate (running headless)
if it where to complete then the part i dont get:
how does this survive a reboot and how does my python code access what is made inside the virtual env
i cant install it with pip and not via apt either, to me it seems is not an "official" packaged module
Code:
sudo pip3 install ha-mqtt-discoverableerror: externally-managed-environment× This environment is externally managed╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. For more information visit http://rptl.io/venvnote: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.hint: See PEP 668 for the detailed specification.doing the virtual env thing as suggested escapes my mind
so far i have gotten this far:
virtualenv -p /usr/bin/python3 testpip
source testpip/bin/activate
pip3 install ha-mqtt-discoverable
the last step takes more than an hour and the ssh connection breaks before its complate (running headless)
if it where to complete then the part i dont get:
how does this survive a reboot and how does my python code access what is made inside the virtual env
Statistics: Posted by boelle — Sun Jun 01, 2025 6:24 am