getsenic / gatt-python

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

[SOLVED] Module 'dbus' not found #31

Open bartkowiaktomasz opened 6 years ago

bartkowiaktomasz commented 6 years ago

Hi. I keep getting an error about 'dbus' module not being found:

Module 'dbus' not found
Please run: sudo apt-get install python3-dbus
See also: https://github.com/getsenic/gatt-python#installing-gatt-sdk-for-python

though I had successfully installed the module before:

python3-dbus is already the newest version (1.2.6-1)

Did anyone experience similar problem?

bartkowiaktomasz commented 6 years ago

If anyone experiences similar problem: in my case it was just a matter of having the package installed for different python version. Just locate dbus, usually you can find it there: /usr/local/lib/python3.6/dist-packages or /home/user/anaconda3/envs/bluetooth-env/lib/python3.6 and copy it to the appropriate environment/python version that you are using.

peter-lucia commented 4 years ago

This seems to work as well:

pip3 install dbus-python