-
- ---------------------------------------------------------------------------
- USBError Traceback (most recent call last)
-
- /home/campbell/Libusb_test.py in <module>()
- ----> 1
- 2
- 3
- 4
- 5
-
- /usr/local/lib/python2.7/dist-packages/usb/core.pyc in read(self, size, timeout)
- 271 For details, see the Device.read() method.
- 272 """
- --> 273 return self.device.read(self.bEndpointAddress, size, self.interface, timeout)
- 274
- 275 class Interface(object):
-
- /usr/local/lib/python2.7/dist-packages/usb/core.pyc in read(self, endpoint, size, interface, timeout)
- 622 intf.bInterfaceNumber,
- 623 size,
- --> 624 self.__get_timeout(timeout)
- 625 )
- 626
-
- /usr/local/lib/python2.7/dist-packages/usb/_debug.pyc in do_trace(*args, **named_args)
- 51 fn = type(args[0]).__name__ + '.' + f.__name__
- 52 _trace_function_call(logger, fn, *args[1:], **named_args)
- ---> 53 return f(*args, **named_args)
- 54 _interop._update_wrapper(do_trace, f)
- 55 return do_trace
-
- /usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.pyc in bulk_read(self, dev_handle, ep, intf, size, timeout)
- 481 intf,
- 482 size,
- --> 483 timeout)
- 484
- 485 @methodtrace(_logger)
-
- /usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.pyc in __read(self, fn, dev_handle, ep, intf, size, timeout)
- 579 length,
- 580 byref(transferred),
- --> 581 timeout))
- 582 return buffer[:transferred.value]
- 583
-
- /usr/local/lib/python2.7/dist-packages/usb/backend/libusb10.pyc in _check(retval)
- 351 if retval.value < 0:
- 352 from usb.core import USBError
- --> 353 raise USBError(_str_error[retval.value])
- 354 return retval
- 355
-
- USBError: Overflow
-