Python nxt py无后端错误

Python nxt py无后端错误,python,nxt,pyusb,Python,Nxt,Pyusb,我正在尝试使用pyusb运行nxt py库的一个示例脚本。每当我尝试运行这些示例时,都会出现以下错误: USB module unavailable, not searching there Bluetooth module unavailable, not searching there Traceback (most recent call last): File "C:\Documents and Settings\*\Desktop\nxt-python-2.2.1\examples\m

我正在尝试使用pyusb运行nxt py库的一个示例脚本。每当我尝试运行这些示例时,都会出现以下错误:

USB module unavailable, not searching there
Bluetooth module unavailable, not searching there
Traceback (most recent call last):
File "C:\Documents and Settings\*\Desktop\nxt-python-2.2.1\examples\mary.py", line
15, in <module>
b = nxt.locator.find_one_brick()
File "C:\Python27\lib\site-packages\nxt\locator.py", line 112, in find_one_brick
for s in find_bricks(host, name, silent, method):
File "C:\Python27\lib\site-packages\nxt\locator.py", line 80, in find_bricks
raise NoBackendError("No selected backends are available! Did you install the comm
modules?")
NoBackendError: No selected backends are available! Did you install the comm modules?
USB模块不可用,未在那里搜索
蓝牙模块不可用,未在那里搜索
回溯(最近一次呼叫最后一次):
文件“C:\Documents and Settings\*\Desktop\nxt-python-2.2.1\examples\mary.py”,第行
15,在
b=nxt.locator.find_one_brick()
文件“C:\Python27\lib\site packages\nxt\locator.py”,第112行,在find\u one\u brick中
对于find_bricks中的s(主机、名称、静默、方法):
文件“C:\Python27\lib\site packages\nxt\locator.py”,第80行,在find\u bricks中
raise NoBackendError(“没有选定的后端可用!您安装了通信吗?”
模块?”)
NoBackendError:没有选定的后端可用!你安装了通讯模块了吗?

我不知道如何解决这个问题,我想知道除了切换到蓝牙之外还有什么其他方法吗?

USB和蓝牙不可用。您需要安装python模块才能运行示例。 这是安装指南,

对我来说(MacOSX)只适用于fantomusb。我还需要为brick locator设置属性,以便在fantomusb上找到它

b = nxt.locator.find_one_brick(name="NXT", strict=True, method=nxt.locator.Method(bluetooth=False, fantomusb=True, fantombt=False, usb=False))