Here is the debug trace output for the "hdo.clear()" statement, in context with the statements leading up to it (I can provide the debug for the "hdo = usbtmc.Instrument(0x05FF,0x1023)" statement also, but it is large and exceeds the max post size without moderator approval):
$ ipython Python 2.7.12 (default, Jun 29 2016, 14:05:02) Type "copyright", "credits" or "license" for more information. IPython 5.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import usbtmc In [2]: hdo = usbtmc.Instrument(0x05FF,0x1023) In [3]: hdo.clear() 2016-08-31 17:41:33,198 DEBUG:usb.backend.libusb1:_Lib USB.get_configuration_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0) 2016-08-31 17:41:33,198 DEBUG:usb.backend.libusb1:_Lib USB.get_interface_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0, 0, 0) 2016-08-31 17:41:33,198 DEBUG:usb.backend.libusb1:_Lib USB.get_configuration_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0) 2016-08-31 17:41:33,199 DEBUG:usb.backend.libusb1:_Lib USB.open_device(<usb.backend.libusb1._Device object at 0x11079d950>) 2016-08-31 17:41:33,199 DEBUG:usb.backend.libusb1:_Lib USB.get_configuration(<usb.backend.libusb1._DeviceHandle object at 0x1111226d0>) 2016-08-31 17:41:33,199 DEBUG:usb.backend.libusb1:_Lib USB.get_configuration_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0) 2016-08-31 17:41:33,199 DEBUG:usb.backend.libusb1:_Lib USB.is_kernel_driver_active(<usb.backend.libusb1._DeviceHandle object at 0x1111226d0>, 0) 2016-08-31 17:41:33,199 DEBUG:usb.backend.libusb1:_Lib USB.get_endpoint_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0, 0, 0, 0) 2016-08-31 17:41:33,199 DEBUG:usb.backend.libusb1:_Lib USB.get_interface_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0, 0, 0) 2016-08-31 17:41:33,200 DEBUG:usb.backend.libusb1:_Lib USB.get_configuration_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0) 2016-08-31 17:41:33,200 DEBUG:usb.backend.libusb1:_Lib USB.get_endpoint_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 1, 0, 0, 0) 2016-08-31 17:41:33,200 DEBUG:usb.backend.libusb1:_Lib USB.get_interface_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0, 0, 0) 2016-08-31 17:41:33,200 DEBUG:usb.backend.libusb1:_Lib USB.get_configuration_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0) 2016-08-31 17:41:33,200 DEBUG:usb.backend.libusb1:_Lib USB.get_endpoint_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 2, 0, 0, 0) 2016-08-31 17:41:33,200 DEBUG:usb.backend.libusb1:_Lib USB.get_interface_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0, 0, 0) 2016-08-31 17:41:33,200 DEBUG:usb.backend.libusb1:_Lib USB.get_configuration_descriptor(<usb.backend.libusb1._Device object at 0x11079d950>, 0) 2016-08-31 17:41:33,201 DEBUG:usb.backend.libusb1:_Lib USB.claim_interface(<usb.backend.libusb1._DeviceHandle object at 0x1111226d0>, 0) --------------------------------------------------------------------------- USBError Traceback (most recent call last) >
------------------------------------------------------------------------------
_______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users