Skip to content
Advertisement

Python3 error “no module named bluetooth” on Linux Mint

I am trying to connect my Lenovo S10E to a Nintendo Wiimote via bluetooth. I am using a simple Python script, reproduced below. I am calling it from the Linux Mint (version 16, “Petra”) command line using python3 find_wii.py

Script:

JavaScript

I am receiving the error

JavaScript

I have installed bluez and python wrappings for it (sudo aptitude install python-bluez). I have upgraded my system (sudo apt-get update, sudo apt-get upgrade). I did consulted Google, and the only official bugs I could find are here and here, and neither of the answers worked for me.

How can I get the Bluetooth module to work?

Advertisement

Answer

You’ve installed the Python 2 version of the bluez bindings. Either run the script using python2 or install the Python 3 bindings. Since they aren’t packaged, you would need to install them using pip:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement