On Wed, Jan 5, 2011 at 11:40 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Wed, Jan 5, 2011 at 10:45 PM, Emmanuel Blot <eblot...@gmail.com> wrote: >> I've copied >> \libusb_2010.12.10\MS64\dll\libusb-1.0.dll into System32, and >> \libusb_2010.12.10\MS32\dll\libusb-1.0.dll into SystemWOW64. >> Am I right or should I move the DLL elsewhere ? > > This is correct. > >> I still get the following error: >> Error: Operation not supported or unimplemented on this platform >> on Windows 7 64 bits, using plain Python 2.7.1 64-bit. > > I have not tried to use 64bit Python. But I am using > 64bit Windows 7 and 32bit Python 2.6.5. > >> I also install Python 2.6.6 32-bit on the same W7/64 machine. >> And I get the exact same error: >> Error: Operation not supported or unimplemented on this platform >> on Windows 7 64 bits, using plain Python 2.6.6 32-bit. >> >> Any way I could track down the issue? >> > > I will check again. >
Works for me. Here is a simple run log under Windows 7 64bit and Python 2.7 64bit. D:\work\pyusb\pyusb>c:\Python27\python.exe Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import usb.core >>> import usb.util >>> dev = usb.core.find(idVendor=0x0925, idProduct=0x7001) >>> dev.set_configuration() >>> dev.write(1,'py',0) 3 >>> ret=dev.read(0x81,2,0,1000) >>> sret=''.join([chr(x) for x in ret]) >>> sret 'py' >>> And 32bit Python 2.6 under Windows 7 64bit. D:\work\pyusb\pyusb>c:\Python26\python.exe Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import usb.core >>> import usb.util >>> dev = usb.core.find(idVendor=0x0925, idProduct=0x7001) >>> dev.set_configuration() >>> dev.write(1,'py',0) 3 >>> ret=dev.read(0x81,2,0,1000) >>> sret=''.join([chr(x) for x in ret]) >>> sret 'py' -- Xiaofan ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users