2011/1/4 Emmanuel Blot <eblot...@gmail.com>:
> 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,
>
Cygwin is still problematic. I have tested alpha 1 in Windows 7 32
bits with both libusb 1.0 and libusb-win32. Using libusb (either 1.0
or libusb-win32) is not as straightforward in Windows as in other
platforms. It requests a device driver for your peripheral be running
(quite opposite from others platforms, where you need to detach the
device driver). libusb 1.0 uses WinUSB, which I am not sure is
available in Windows XP (I guess so, you might find some info in the
libusb.org website), and libusb-win32 has its own device driver, which
I am sure runs on Windows XP.

Anyway, you have to install the device driver for your peripheral.
Both libraries have tools to make this task easier, please check the
projects respective websites for details.

Best regards,
Wander

------------------------------------------------------------------------------
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