PyBluez 0.22 上的操作系统错误
OSError on PyBluez 0.22
运行 Windows 10 和 Python 3.6 上的 PyBluez,每次调用 bluetooth.discover_devices() 函数时都会出现 OSError。
截至目前,代码仅包含 3 行:
import bluetooth
print "Searching for devices... \n"
nearby_devices = bluetooth.discover_devices()
控制台然后给出:
Searching for devices...
Traceback (most recent call last):
File "D:\Documentos\UFSCª Fase\Projeto Integrador\testeBT.py", line 9, in <module>
nearby_devices = bluetooth.discover_devices()
File "C:\Users\Thaler\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bluetooth\msbt.py", line 15, in discover_devices
devices = bt.discover_devices(duration=duration, flush_cache=flush_cache)
OSError
有解决办法吗?我以前从未使用过 PyBluez,这应该是一个简单的测试程序...
运行 Windows 10 和 Python 3.6 上的 PyBluez,每次调用 bluetooth.discover_devices() 函数时都会出现 OSError。
截至目前,代码仅包含 3 行:
import bluetooth
print "Searching for devices... \n"
nearby_devices = bluetooth.discover_devices()
控制台然后给出:
Searching for devices...
Traceback (most recent call last):
File "D:\Documentos\UFSCª Fase\Projeto Integrador\testeBT.py", line 9, in <module>
nearby_devices = bluetooth.discover_devices()
File "C:\Users\Thaler\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bluetooth\msbt.py", line 15, in discover_devices
devices = bt.discover_devices(duration=duration, flush_cache=flush_cache)
OSError
有解决办法吗?我以前从未使用过 PyBluez,这应该是一个简单的测试程序...