我刚刚在我的 Windows 8 笔记本电脑上安装了 PyBluez,我尝试启动模块示例来测试它是否正常工作。
当我运行该examples/simple/inquiry.py
文件时,我收到以下错误:
C:\Users\Manuel\AppData\Local\Programs\Python\Python35-32\Lib\site-packages>python C:\Users\Manuel\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PyBluez-0.22\examples\simple\inquiry.py
performing inquiry...
Traceback (most recent call last):
File "C:\Users\Manuel\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PyBluez-0.22\examples\simple\inquiry.py", line 13, in <module>
duration=8, lookup_names=True, flush_cache=True, lookup_class=False)
File " C:\Users\Manuel\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\bluetooth\msbt.py", line 15, in discover_devices
devices = bt.discover_devices(duration=duration, flush_cache=flush_cache)
OS Error
我的蓝牙打开了,我不知道发生了什么。
有什么帮助吗?