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.

NotImplementedError: Operation not supported or unimplemented on this platform

See original GitHub issue

Hi.

I’m in an internship and I want to read the USB port to see the type of data transiting. Ideally, I want to be able to both send and receive USB packets. I’m trying to read on a port with the .read() method but I have this error popping up :

NotImplementedError: Operation not supported or unimplemented on this platform

I don’t understand what could be the problem. Everything is up to date, I use the latest version of Python and Spyder, on Windows 10.

The code is as follow :

import usb.core
import usb.util

# find our device
dev = usb.core.find(idVendor = 0x152D, idProduct = 0x0576)
# was it found?
if dev is None:
    raise ValueError('Device not found')
else:
    print(dev)
    dev.read(0x81,100)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TitouanLabourdettecommented, Jul 1, 2021

You were right, the port used were indeed not the same depending of the type of devices connected. I couldn’t find any COM port because I used a hard drive. With another peripheral I finally got an open COM port.

Thank you very much for your help.

0reactions
jonasmalacofilhocommented, Jul 1, 2021

I still think the most likely cause is that the installed driver isn’t compatible with libusb.

Most likely, the driver that is installed for that device isn’t compatible with libusb. Their FAQ has more information on using it with Windows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyUSB 1.0: NotImplementedError: Operation not supported or ...
I tried to connect and use a Microchip self-programmed card. Unfortunately, the driver provided by Microchip is not compliant with the libusb library...
Read more >
Operation not supported or unimplemented on this platform #11
On Windows you can only work with USB devices for which you installed a special driver. This is a limitation of libusb on...
Read more >
Operation not supported or unimplemented on this platform
On 2020-10-22, Mario St-Gelais <mario....@videotron.ca> wrote: > I am attempting to get data from USB or an Accurite Weather Sensor, ...
Read more >
CircuitPython Libraries on any Computer with FT232H
NotImplementedError : Operation not supported or unimplemented on this platform. Go back to the setup steps and Zadig your board if on Windows ......
Read more >
[Libusb-devel] LIBUSB_ERROR_NOT_SUPPORTED
when I use libusb_open() get error: "operation not supported or unimplemented on platform" I use libusb1.x. Please help me fix bug, thank in...
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