【问题标题】:nxt-py no backends errornxt-py 没有后端错误
【发布时间】:2012-03-28 18:18:47
【问题描述】:

我正在尝试使用 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?

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

【问题讨论】:

    标签: python nxt pyusb


    【解决方案1】:

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

    对我来说 (mac os x) 仅适用于 fantomusb。我还需要为砖定位器设置属性以找到它 trought fantomusb。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-18
      • 1970-01-01
      • 2017-10-05
      • 2014-10-25
      • 2021-08-15
      相关资源
      最近更新 更多