trezor / cython-hidapi

:snake: Python wrapper for the HIDAPI
Other
283 stars 109 forks source link

[Question] Several methods don't work well on Windows and MacOS #169

Open TheABC1025 opened 9 months ago

TheABC1025 commented 9 months ago

Hi,

I use this library for closs plattform (MacOS, Windows11) python project. But when I tried to use it on both OS, the behavior of my code was different with each other.

In detail, when I use get_input_report(), I successfully to execute this method on MacOS, but on Windows, I fail to do with the error: OSError: read error. And more, when I use read(), this method correctly to read data from device on Windows, but on MacOS, this method returns empty list with timeout.

I installed this library via pip install hidapi and the version is 0.14.0 and only did it. Are there any more processes to use library on each OS?

thanks.

TheABC1025 commented 9 months ago

(I checked the device connection with using hid.enumerate(), and I found the target device in the list without problems.)

q465414859 commented 9 months ago

能分享你的源码吗?