2012/1/21 Xiaofan Chen <xiaof...@gmail.com>: > I am not so sure why the libusb-0.1 backend can not enumerate the > device under Mac OS X Lion. Here libusb-compat-0.1 is used > and I built it as universal binary. libusb-1.0 backend works fine. > > mymacmini:pyusb xiaofanc$ python > Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) > [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> import usb.core >>>> import usb.util >>>> dev=usb.core.find(idVendor=0xffff, idProduct=0x0005) > 2012-01-21 21:45:02,155 INFO:usb.core:find(): using backend > "usb.backend.libusb10" > 2012-01-21 21:45:02,155 DEBUG:usb.backend.libusb10:_LibUSB.enumerate_devices() > 2012-01-21 21:45:02,688 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d685690>) > 2012-01-21 21:45:02,688 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d685890>) > 2012-01-21 21:45:02,689 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d6857d0>) > 2012-01-21 21:45:02,689 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d685850>) > 2012-01-21 21:45:02,689 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d685690>) > 2012-01-21 21:45:02,689 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d685890>) > 2012-01-21 21:45:02,689 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d6857d0>) > 2012-01-21 21:45:02,689 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d685850>) > 2012-01-21 21:45:02,689 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d685690>) > 2012-01-21 21:45:02,690 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d685890>) > 2012-01-21 21:45:02,690 > DEBUG:usb.backend.libusb10:_LibUSB.get_device_descriptor(<usb.backend.libusb10._Device > object at 0x10d6857d0>) >>>> import usb.backend.libusb01 >>>> b=usb.backend.libusb01.get_backend() >>>> assert b is not None >>>> b > <usb.backend.libusb01._LibUSB object at 0x10d6858d0> >>>> dev=usb.core.find(idVendor=0xffff, >>>> idProduct=0x0005,backend=usb.backend.libusb01.get_backend()) > 2012-01-21 21:51:06,927 DEBUG:usb.backend.libusb01:_LibUSB.enumerate_devices() >>>> dev >>>> assert dev is not None > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > AssertionError >
There is a bug reported by you (I created a ticket for it) reporting the same problem under FreeBSD, but I haven't time to digg into it yet. AKAIK, the FreeBSD implementation is done by 3rd party, right? What about Mac OSX? -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ 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 pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users