I am using python 2.2 and want to make use of the library PyUsb. I tried a lot but couldn't get it right. Can anyone please help how to do that.

What files have you downloaded, and where are they installed?

What files have you downloaded, and where are they installed?

Hi thanks for the reply
I did the following procedure

1) Downloaded "libusb-win32-device-bin-0.1.12.1"
2) Got the following DLL's from its "Bin" directory
- libusb0.dll
- libusb0.sys
- libusb0_x64.dll
- libusb0_x64.sys

3) Put these DLL's inside the folder -> C:\Python22\DLLs
( Python22 is my Python installed folder )

4) I searched for the USB file for python2.2 but didnt get it. So tried using the USB file of python2.3 ( http://web.media.mit.edu/~dmerrill/sensor_network_applications/usb.pyd_2.3 )

5) Put inside the folder -> C:\Python22\Lib\site-packages

6) Now from my python prompt, if I do "import usb" -> It gives an error - The ordinal 77 could not be located in the DLL libusb0.dll

Thereafter could not debug this problem. Please help if possible

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.