pi@raspberrypi:~/Switchdoc_labs $ ls
ble.py bluetooth init.py osx.py _widcomm.pyd
blescan.py bluez.py msbt.py testblescan.py
blescan.pyc btcommon.py _msbt.pyd widcomm.py
pi@raspberrypi:~/Switchdoc_labs $ sudo python testblescan.py
Traceback (most recent call last):
File "testblescan.py", line 4, in
import blescan
File "/home/pi/Switchdoc_labs/blescan.py", line 21, in
import bluetooth._bluetooth as bluez
File "/home/pi/Switchdoc_labs/bluetooth/init.py", line 43, in
from .bluez import *
File "/home/pi/Switchdoc_labs/bluetooth/bluez.py", line 6, in
import _bluetooth as _bt
ImportError: No module named _bluetooth
pi@raspberrypi:~/Switchdoc_labs $
here is the response:
pi@raspberrypi:~/Switchdoc_labs $ ls ble.py bluetooth init.py osx.py _widcomm.pyd blescan.py bluez.py msbt.py testblescan.py blescan.pyc btcommon.py _msbt.pyd widcomm.py pi@raspberrypi:~/Switchdoc_labs $ sudo python testblescan.py Traceback (most recent call last): File "testblescan.py", line 4, in
import blescan
File "/home/pi/Switchdoc_labs/blescan.py", line 21, in
import bluetooth._bluetooth as bluez
File "/home/pi/Switchdoc_labs/bluetooth/init.py", line 43, in
from .bluez import *
File "/home/pi/Switchdoc_labs/bluetooth/bluez.py", line 6, in
import _bluetooth as _bt
ImportError: No module named _bluetooth
pi@raspberrypi:~/Switchdoc_labs $
Any ideas on what I am doing wrong?
Thanks