getsenic / gatt-python

Bluetooth GATT SDK for Python
MIT License
318 stars 86 forks source link

If dbus module not found, logs wrong installation command #65

Open SethFalco opened 2 years ago

SethFalco commented 2 years ago
print("Please run: sudo apt-get install python3-dbus")

https://github.com/getsenic/gatt-python/blob/master/gatt/gatt_linux.py#L7

This command is specific to Debian based distributions, but for someone using an Alpine-based distribution, this log message isn't helpful.

On Alpine, we have to run sudo apk add py3-dbus

Instead of specifying a package manager specific command, it should have a more agnostic message like: "Please install Python 3 bindings for dbus."