Python PyBluez未检测到内置蓝牙适配器

Python PyBluez未检测到内置蓝牙适配器,python,bluetooth,Python,Bluetooth,我想开始开发一些工具,让我可以通过蓝牙在手机和电脑之间进行通信,我想用Python来实现。我安装了python蓝牙模块(PyBluez),但它没有检测到我的内置BT适配器(我在东芝A300卫星上) 返回以下错误: Traceback (most recent call last): File "C:/Python26/bt.py", line 3, in <module> nearby_devices = bluetooth.discover_devices() Fi

我想开始开发一些工具,让我可以通过蓝牙在手机和电脑之间进行通信,我想用Python来实现。我安装了python蓝牙模块(PyBluez),但它没有检测到我的内置BT适配器(我在东芝A300卫星上)

返回以下错误:

Traceback (most recent call last):
  File "C:/Python26/bt.py", line 3, in <module>
    nearby_devices = bluetooth.discover_devices()
  File "C:\Python26\lib\site-packages\bluetooth\msbt.py", line 9, in discover_devices
    return bt.discover_devices (flush_cache, lookup_names)
IOError: No Bluetooth adapter detected
回溯(最近一次呼叫最后一次):
文件“C:/Python26/bt.py”,第3行,在
附近的_设备=蓝牙。发现_设备()
文件“C:\Python26\lib\site packages\bluetooth\msbt.py”,第9行,在discover\u设备中
返回bt.discover\u设备(刷新\u缓存、查找\u名称)
IOError:未检测到蓝牙适配器

有什么帮助吗?

PyBluez使用MS Bluetooth驱动程序堆栈和Widcom for Windows,而Linux则使用BlueZ。如果您的笔记本电脑具有不同的堆栈,则无法正常工作。

您可以卸载驱动程序(如果可能),然后重新启动Windows并让它安装默认驱动程序。
如果你能管理好它,PyBluez会工作得更好。

是的,我肯定能打开,我可以通过东芝自己的BT协议栈在我的笔记本电脑和手机之间传输文件。我收到的错误与你发布的相同,但前提是没有发现任何设备。当有一个设备发现它工作,我没有得到错误。
Traceback (most recent call last):
  File "C:/Python26/bt.py", line 3, in <module>
    nearby_devices = bluetooth.discover_devices()
  File "C:\Python26\lib\site-packages\bluetooth\msbt.py", line 9, in discover_devices
    return bt.discover_devices (flush_cache, lookup_names)
IOError: No Bluetooth adapter detected