发现蓝牙设备的IO错误:RPC服务器不可用 [英] Discovering bluetooth devices IOError: The RPC server is unavailable
本文介绍了发现蓝牙设备的IO错误:RPC服务器不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是试图在Python中PyCharm实现蓝牙,使用 PyBluez 。我坚持这个特殊的错误。我试图寻找这个错误,但无法找到它。任何人可以帮助?
这是我的code
>>>从蓝牙进口discover_devices
>>> nearby_devices = discover_devices()
回溯(最近通话最后一个):
文件<&标准输入GT;,1号线,上述<&模块GT;
文件C:\\ Python27 \\ lib目录\\站点包\\蓝牙\\ msbt.py,15号线,在discover_devices
设备= bt.discover_devices(持续时间=持续时间,flush_cache = flush_cache)
IO错误:RPC服务器不可用。
解决方案
我有同样的错误,并设法解决它。
蓝牙无线电设备已在我的笔记本禁用。
我打开设备管理器,选择的设备,并启用它。
现在我的输出是:
>>>从蓝牙进口discover_devices
>>> discover_devices()
[2C':4A:05:96:27:01]
I just tried to implement bluetooth from Python in PyCharm, using PyBluez. I am stuck with this particular error. I tried to search this error but could not find it. Can anybody help ?
This is my code
>>> from bluetooth import discover_devices
>>> nearby_devices = discover_devices()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\bluetooth\msbt.py", line 15, in discover_devices
devices = bt.discover_devices(duration=duration, flush_cache=flush_cache)
IOError: The RPC server is unavailable.
解决方案
I had the same error and managed to fix it.
The Bluetooth Radio device was disabled on my laptop.
I opened Device Manager, selected the device, and enabled it.
Now my output is:
>>> from bluetooth import discover_devices
>>> discover_devices()
['2C:4A:05:96:27:01']
这篇关于发现蓝牙设备的IO错误:RPC服务器不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文