值错误:无后端
尝试在带有 python 2.7 和 libusb 1.2.5 的 Windows 7 上使用 pyusb 1.0
安装一切正常,libusb 正在工作,因为我从测试程序获取端点信息,但是当我从 pyusb 教程运行此代码时 -
import usb.core
import usb.util
import sys
dev = usb.core.find(idVendor=0x20A4, idProduct=0x001)
if dev is None:
raise ValueError('Device not found')
dev.set_configuration()
print "WINNING"
我得到一个 < code>Value Error: No Backend available error in line 846 of core.py
有什么建议吗?
trying to use pyusb 1.0 on windows 7 with python 2.7 and libusb 1.2.5
Have installed everything fine, libusb is working as I am getting endpoint information from the test program but when I run this code from the pyusb tutorial -
import usb.core
import usb.util
import sys
dev = usb.core.find(idVendor=0x20A4, idProduct=0x001)
if dev is None:
raise ValueError('Device not found')
dev.set_configuration()
print "WINNING"
I am getting a Value Error: No Backend available error in line 846 of core.py
Any advice?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最新的 pyusb trunk 支持 libusb 0.x 和 libusb 1.0。貌似不支持1.2,可以在
usb/backend/libusb10.py
中的get_backend()
方法中看到。也许你可以使用旧版本的 libusb,或者为 1.0 后端做出贡献:)
The latest pyusb trunk is supporting libusb 0.x and libusb 1.0. Look like it's not supporting 1.2, and you can see it in the
usb/backend/libusb10.py
in theget_backend()
method.Maybe you can use an older version of libusb, or contribute to the 1.0 backend :)