From f2ac55eac1df570db9a4e5f2a45f69ac3b71c3aa Mon Sep 17 00:00:00 2001 From: Fredrik Wahlberg Date: Sun, 28 Dec 2025 00:33:35 +0100 Subject: [PATCH] Fix missing PyBluez dependency The code imports 'bluetooth._bluetooth' which requires the PyBluez package (not bluepy). PyBluez provides Classic Bluetooth support needed by utils.py and sensor_reader.py. - Add pybluez>=0.31 to both requirements.txt and pyproject.toml - Keep bluepy and paho-mqtt as they are also needed - bluez system package also needed (already in debian/control) Fixes: ModuleNotFoundError: No module named 'bluetooth' --- pyproject.toml | 1 + requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b7a1c45..9e77055 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ ] dependencies = [ + "pybluez>=0.31", "bluepy>=1.3.0", "paho-mqtt>=1.6.0", ] diff --git a/requirements.txt b/requirements.txt index 22eac17..696a541 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ +pybluez bluepy paho-mqtt