Hello,

Did anyone succeed running pyusb (or even libusb...) under Windows ?

I've tried on Windows XP 32-bit the following combinations, without any success:

 1. Python 2.6.5/Cygwin 1.7, libusb-win32
 2. Python 2.6.5/Cygwin 1.7, libusb-1.0.5+git
 3. Python 2.6.5/Cygwin 1.7, libusb-1.0.7+git
 4. Python 2.7.1, libusb-1.0.8 (latest binaries)

I got various results, from "Segmentation Fault" to "No backend
available" or even "Error: Operation not supported or unimplemented on
this platform"

 * "Segmentation fault" is produced with Cygwin and libusb-win32.
Another variant with this combination is the sudden death of the
Python interpreter, with no error message, back to the infamous CMD
prompt...
 * "No backend available" is produced with Cygwin and libusb-1.0.x, it
seems that CDLL() find the proper library ('cygusb-1.0.dll' *), but
sees no symbols in it:
   * hhasattr(l, 'libusb_init') fails,
   * lib.libusb_set_debug does the same
 * "Error: Operation not supported or unimplemented on this platform"
is "performed" with the native Python 2.7.1 interpreter (no Cygwin)

It seems that using libusb on Windows is more complex than on any
other platform (no kidding!, the opposite way would have been
surprising...).
I have not installed WinUSB stuff as recommended here:
http://libusb.org/wiki/winusb_driver_installation, as I already
installed the native Windows drivers for the USB device.

Any help would be greatly appreciated, I guess I miss something
obvious with this platform,

Thanks
Manu

*: BTW, it seems that libusb-1.0.5 contains "cygusb-1.0.0.dll" whereas
libusb-1.0.7 contains "cygusb-1.0.dll". In any case, ctypes from
Python 2.6.5 is able to locate the "cygusb*.dll" libraries without
having to fallback to the special 'cygwin' platform case.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to