我试图运行这个脚本:
import PyOBEX
import bluetooth
print "performing inquiry..."
nearby_devices = bluetooth.discover_devices(lookup_names = True)
print "found %d devices" % len(nearby_devices)
for name, addr in nearby_devices:
print " %s - %s" % (addr, name)但是我得到一个未实现的错误终端。这是我得到的结果:
Last login: Sat Dec 4 20:59:06 on ttys001
You have mail.
cd '/Users/riceje7/School/NMD 430/' && '/usr/bin/pythonw' '/Users/riceje7/School/NMD 430/BluetoohLocator.py' && echo Exit status: $? && exit 1
Joseph-Rices-MacBook-Pro:~ riceje7$ cd '/Users/riceje7/School/NMD 430/' && '/usr/bin/pythonw' '/Users/riceje7/School/NMD 430/BluetoohLocator.py' && echo Exit status: $? && exit 1
Traceback (most recent call last):
File "/Users/