On Fri, Jan 27, 2012 at 9:36 PM, Wander Lairson Costa
<[email protected]> wrote:
>> It seems that this issue has been reported before.
>> http://comments.gmane.org/gmane.comp.python.pyusb.user/386
>>
>> So I created a new Trac ticket here.
>> https://sourceforge.net/apps/trac/pyusb/ticket/10
>>
>
> Thanks, I didn't remember that :-)
>
As mentioned in that thread, the problem is with
the enumeration codes.
# implementation of libusb 0.1.x backend
class _LibUSB(usb.backend.IBackend):
@methodtrace(_logger)
def enumerate_devices(self):
_check(_lib.usb_find_busses())
_check(_lib.usb_find_devices())
bus = _lib.usb_get_busses()
while bool(bus):
dev = bus[0].devices
while bool(dev):
yield dev[0]
dev = dev[0].next
bus = bus[0].next
The problem is that under Mac OS X, bool(bus)
returns False.
--
Xiaofan
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
pyusb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyusb-users