2012/10/30 Stefano Di Martino <stefan...@gmx.net>: > Hi, > libusbx had indeed an issue, but now, it is fixed. I cant get without > problems an string descriptor from a HID device, but his works only in C. > With pyUSB I get the same error: "[Errno None] Overflow". > Maybe pyUSB has a bug, too? > > This is the way how I retrieve the string descriptor: > > def get_manufactorer_name(self): > if self.device.iManufacturer > 0: > string = usb.util.get_string(self.device, 254, > self.device.iManufacturer) > return string > > return "" > > I can't post any debug messages, because I don't know how to activate them in > pyUSB. I tried this, but it doesn't work: > > os.environ['PYUSB_DEBUG_LEVEL'] = 'debug' >
You should do that before importing PyUSB modules. -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users