apmorton / pyhidapi

hidapi bindings in ctypes
MIT License
112 stars 42 forks source link

AttributeError: module 'hid' has no attribute 'device' #58

Closed zhaozhongch closed 10 months ago

zhaozhongch commented 10 months ago

After import the hid, then hid.device() returns the above error.

apmorton commented 10 months ago

This library does not have device, it has Device (capital D).

Are you reading the docs for https://github.com/trezor/cython-hidapi ?

zhaozhongch commented 10 months ago

Yes. Seems I mess up the two libs. I have fixed the problem by only leaving one lib.