On Tue, Jul 10, 2012 at 9:43 PM, Emmanuel Blot <eblot...@gmail.com> wrote:
>> You do not need to install the legacy libusb-0.1 under Mac OS X.
>> You just need to use the libusb-compat. libusb-0.1 is no longer
>> maintained under Linux and Mac OS X but libusb-compat is
>> still maintained.
>
> It depends what wea actually want to test… Wander, wha'ts your opinion?
>

This is what I get with the latest git under Mac OS X 10.7.4
and its built-in Python. libusb1 backend is okay, libusb0 backend
can not find the device.

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=0x04d8,idProduct=0xfa2e)
>>> dev
<usb.core.Device object at 0x106415290>
>>> import usb.backend.libusb0
>>> b=usb.backend.libusb0.get_backend()
>>> b
<usb.backend.libusb0._LibUSB object at 0x106415410>
>>> dev0=usb.core.find(idVendor=0x04d8,idProduct=0xfa2e,backend=b)
>>> dev0
>>> assert dev0 is not None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError

On the other hand, this can be just documented as a limitation
and users are advised to use libusb1 backend under Mac OS
X and Linux anyway.



-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to