question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pyusb isoc transfer under Windows, macOS and Linux

See original GitHub issue

So far I have not been able to get pyusb isoc transfer to work under macOS and Windows. On Windows I think libusb-1.0 itself has some issues. So I will test out macOS and Linux first.

I am using Cyusb FX3 known good Firmware isoloop and isosrcsink. https://github.com/hantianjz/cy_fx3_sdk/tree/master/cyusb_linux_1.0.5/fx3_images

Issues:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/homebrew/lib/python3.9/site-packages/usb/core.py", line 408, in write
    return self.device.write(self, data, timeout)
  File "/opt/homebrew/lib/python3.9/site-packages/usb/core.py", line 979, in write
    return fn(
  File "/opt/homebrew/lib/python3.9/site-packages/usb/backend/libusb1.py", line 874, in iso_write
    return handler.submit(self.ctx)
  File "/opt/homebrew/lib/python3.9/site-packages/usb/backend/libusb1.py", line 680, in submit
    _check(_lib.libusb_submit_transfer(self.transfer))
  File "/opt/homebrew/lib/python3.9/site-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:43 (43 by maintainers)

github_iconTop GitHub Comments

1reaction
mcueecommented, Mar 29, 2022

Some testing results under Windows with libusb-1.0.26rc1. Isoc transfer seems to work now under Windows with libusbk driver. https://github.com/libusb/libusb/issues/1099

0reactions
mcueecommented, Mar 31, 2022

@jonasmalacofilho I think the staging tree is good. As for the following, hopefully you can fix it.

we also seem to have a new finalizer bug, at least when something else goes wrong.

@tormodvolden I have add the C example and issue here. Please take a look if the C code is correct or not. Thanks. https://github.com/libusb/libusb/issues/1104#issuecomment-1084586649

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - pyusb isoc transfer under macOS and Linux -
So far I have not been able to get pyusb isoc transfer to work under macOS and Windows. On Windows I think libusb-1.0...
Read more >
[pyusb-users] Python and USB HID Device
as the driver under Windows and then use pyusb with it. ... pyusb with no issues. libusb under Linux can detach ... support...
Read more >
Installing Python & PyUSB | Hacking the Kinect
The nicest way to do this is to use lsusb (Linux) or system_profiler (Mac) which is a "list usb" program available for Linux...
Read more >
Connecting USB devices to WSL - Windows Command Line
From within WSL, run lsusb to list the attached USB devices. You should see the device you just attached and be able to...
Read more >
ReSpeaker Mic Array v2.1 - Seeed Wiki
1 supports USB Audio Class 1.0 (UAC 1.0) directly. All major Operating System, including Windows,macOS, and Linux are compatible with UAC 1.0, while...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found