python libusb1_Windows,libusb1和libusb-win32后端的PyUSB无法正常工作

Traceback(most recent call last):File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line727,in__str__forconfigurationinself:File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line1094,in__iter__yieldConfiguration(self,i)File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line586,in__init__

configurationFile"C:\ProgramData\Anaconda3\lib\site-packages\usb\backend\libusb1.py",line757,inget_configuration_descriptor

config,byref(cfg)))File"C:\ProgramData\Anaconda3\lib\site-packages\usb\backend\libusb1.py",line595,in_checkraiseUSBError(_strerror(ret),ret,_libusb_errno[ret])usb.core.USBError:[Errno2]EntitynotfoundDuringhandling of the above exception,another exception occurred:Traceback(most recent call last):File"reading_dymo_scale.py",line22,inprint(device)File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line731,in__str__

configuration=self.get_active_configuration()File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line875,inget_active_configurationreturnself._ctx.get_active_configuration(self)File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line102,inwrapperreturnf(self,*args,**kwargs)File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line236,inget_active_configuration

self.managed_open()File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line102,inwrapperreturnf(self,*args,**kwargs)File"C:\ProgramData\Anaconda3\lib\site-packages\usb\core.py",line120,inmanaged_open

self.handle=self.backend.open_device(self.dev)File"C:\ProgramData\Anaconda3\lib\site-packages\usb\backend\libusb1.py",line786,inopen_devicereturn_DeviceHandle(dev)File"C:\ProgramData\Anaconda3\lib\site-packages\usb\backend\libusb1.py",line643,in__init__

_check(_lib.libusb_open(self.devid,byref(self.handle)))File"C:\ProgramData\Anaconda3\lib\site-packages\usb\backend\libusb1.py",line593,in_checkraiseNotImplementedError(_strerror(ret))NotImplementedError:Operationnotsupportedorunimplemented on this platform

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值