Pyusb on windows - no backend available

后端 未结 9 1148
情话喂你
情话喂你 2020-11-29 04:55

I\'m trying to have my python application interface with an NFC device via USB. The best option seems to be pyusb, but I can\'t get it to connect to the libusb backend. I ke

9条回答
  •  生来不讨喜
    2020-11-29 04:57

    I am using Python 2.6.5, libusb-win32-device.bin-0.1.12.1 and pyusb-1.0.0-a0 on a windows XP system and kept receiving ValueError: No backend available.

    Since there wasn't any real help on the web for this problem I spent a lot of time finding that ctypes util.py uses the Path variable to find the library file. My path did not include windows\system32 and PYUSB didn't find the library. I updated the path variable and now the USB is working.

提交回复
热议问题