Tôi cố gắng để gửi một lệnh chuyển giao kiểm soát thông qua pyusb trên máy Mac OS: dev.ctrl_transfer (0x21,0x09,0x0200,0x0,0x1)Pyusb - Errno 13 Truy cập bị từ chối đăng ký chuyển nhượng Control - Mac OS X
Tôi gặp lỗi:
Traceback (most recent call last):
File "./main.py", line 21, in <module>
dev.ctrl_transfer(0x21,0x09,0x0200,0x0000,0x0001)
File "/Library/Python/2.7/site-packages/usb/core.py", line 962, in ctrl_transfer
self._ctx.managed_claim_interface(self, interface_number)
File "/Library/Python/2.7/site-packages/usb/core.py", line 146, in managed_claim_interface
self.backend.claim_interface(self.handle, i)
File "/Library/Python/2.7/site-packages/usb/backend/libusb1.py", line 747, in claim_interface
_check(self.lib.libusb_claim_interface(dev_handle.handle, intf))
File "/Library/Python/2.7/site-packages/usb/backend/libusb1.py", line 552, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
Ai đó có thể giúp tôi với điều này. Tôi đã thử sudo, su. Ngoài ra tôi đã đăng bài này trong nhóm người dùng pyusb github. Tôi đã nhận này (thêm bản thân mình cho một nhóm plugdev trong các hệ thống debian) như là một giải pháp khả thi nhưng tôi không chắc chắn làm thế nào để tiến hành Mac OS https://github.com/braiden/python-ant-downloader/issues/30#issuecomment-55293142
liên kết với các câu hỏi sau:
OUT Endpoint not accessible by pyusb
PyUSB dev.set_configuration() (giải pháp là cho ubuntu)
Bạn đã tìm thấy một câu trả lời cho điều này? – cbare
Không, tôi không nhận được giải pháp nào – Vinoth