rsmont / nxt-python

Automatically exported from code.google.com/p/nxt-python
GNU General Public License v3.0
0 stars 0 forks source link

When running anything using nxt-python i get an error. #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Run a program using nxt-python
2.Run any example

What is the expected output? What do you see instead?
I get multiple errors.
File "/Users/joey/Downloads/nxt-python-1.2.0/examples/test_sensors.py", line 
16, in <module>
    sock = nxt.locator.find_one_brick()
  File "/Library/Python/2.7/site-packages/nxt/locator.py", line 112, in find_one_brick
    for s in find_bricks(host, name, silent, method):
  File "/Library/Python/2.7/site-packages/nxt/locator.py", line 43, in find_bricks
    for s in socks:
  File "/Library/Python/2.7/site-packages/nxt/usbsock.py", line 84, in find_bricks
    for bus in usb.busses():
  File "/Library/Python/2.7/site-packages/usb/legacy.py", line 343, in busses
    return (Bus(),)
  File "/Library/Python/2.7/site-packages/usb/legacy.py", line 339, in __init__
    self.devices = [Device(d) for d in core.find(find_all=True)]
  File "/Library/Python/2.7/site-packages/usb/core.py", line 856, in find
    raise ValueError('No backend available')
ValueError: No backend available
Joey-Berkovitzs-MacBook-Pro:nxt-python-1.2.0 joey$ sudo python 
/Users/joey/Downloads/nxt-python-1.2.0/examples/test_sensors.py 
Traceback (most recent call last):
  File "/Users/joey/Downloads/nxt-python-1.2.0/examples/test_sensors.py", line 16, in <module>
    sock = nxt.locator.find_one_brick()
  File "/Library/Python/2.7/site-packages/nxt/locator.py", line 112, in find_one_brick
    for s in find_bricks(host, name, silent, method):
  File "/Library/Python/2.7/site-packages/nxt/locator.py", line 43, in find_bricks
    for s in socks:
  File "/Library/Python/2.7/site-packages/nxt/usbsock.py", line 84, in find_bricks
    for bus in usb.busses():
  File "/Library/Python/2.7/site-packages/usb/legacy.py", line 343, in busses
    return (Bus(),)
  File "/Library/Python/2.7/site-packages/usb/legacy.py", line 339, in __init__
    self.devices = [Device(d) for d in core.find(find_all=True)]
  File "/Library/Python/2.7/site-packages/usb/core.py", line 856, in find
    raise ValueError('No backend available')
ValueError: No backend available

What version of nxt-python are you using? On what operating system?
Mac Mountain Lion 10.8.4

Please provide any additional information below.
I tried using both nxt-python 2.2.2 and 1.2.0

Original issue reported on code.google.com by mamism...@gmail.com on 6 Jul 2013 at 10:34

GoogleCodeExporter commented 9 years ago
Looks like a pyusb/libusb bug, better check with them. Sorry about that, hope 
you get it working.

Original comment by marcus@wanners.net on 7 Jul 2013 at 5:25