From: Steven P. <n9...@n9...> - 2003-12-16 04:06:03
|
On Dec 15, 2003, at 5:33 PM, Roger Binns wrote: >> in the _openusb() method of commport.py, I had to insert the >> following >> call: >> >> usb.UpdateLists() > > UpdateLists is called automatically on import of the usb module. It > should also be called before each round of auto-probes although I > don't know if that is coded. > > It is also unfortunately an unsafe function to call due to the > way libusb works. Effectively all pointers become invalidated > as they can be rejigged around. If that line is not implemented here, it can not find the device. I don't know what else to say, except that, at least on the Mac, it's not enumerating and saving the state of the USB bus prior to trying to access it at this point. I put a print statement in right under the for bus in usb.AllBusses() loop, and it never enters the loop. Pardon my python ignorance, but can you please point me to what initializes this when the usb module loads, I can't find it. As for the "auto" scan bit, I'm not doing those at present on the Mac, so if it's counting on them, that would explain it. -. ----. -.-- - -.-- Steve Palm - n9...@n9... -. ----. -.-- - -.-- |