ImportError: Unable to load any of the following libraries:libhidapi-hidraw.so #518

Closed
opened 2023-03-17 08:08:01 -05:00 by BobbyCirrus · 1 comment
BobbyCirrus commented 2023-03-17 08:08:01 -05:00 (Migrated from github.com)

Hi, ....

I got 'importError' when I run 'import hid' 0n my python..
I selected interpreter to Python. 3.8.19

THX in advance for any guide.

I had 'pip install hidapi', but unable to fix issue.

import hid

=================================================
File [c:\Users\xxxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hid\__init__.py:30]

else:
    error = "Unable to load any of the following libraries:{}"\
        .format(' '.join(library_paths))
 -->    raise ImportError(error)
hidapi.hid_init()
atexit.register(hidapi.hid_exit)
===========================================
ImportError: Unable to load any of the following libraries:libhidapi-hidraw.so libhidapi-hidraw.so.0 libhidapi-libusb.so libhidapi-libusb.so.0 libhidapi-iohidmanager.so libhidapi-iohidmanager.so.0 libhidapi.dylib hidapi.dll libhidapi-0.dl
=====================================

Regards

Hi, .... I got 'importError' when I run 'import hid' 0n my python.. I selected interpreter to Python. 3.8.19 THX in advance for any guide. I had 'pip install hidapi', but unable to fix issue. ``` import hid ================================================= File [c:\Users\xxxxx\AppData\Local\Programs\Python\Python38-32\lib\site-packages\hid\__init__.py:30] else: error = "Unable to load any of the following libraries:{}"\ .format(' '.join(library_paths)) --> raise ImportError(error) hidapi.hid_init() atexit.register(hidapi.hid_exit) =========================================== ImportError: Unable to load any of the following libraries:libhidapi-hidraw.so libhidapi-hidraw.so.0 libhidapi-libusb.so libhidapi-libusb.so.0 libhidapi-iohidmanager.so libhidapi-iohidmanager.so.0 libhidapi.dylib hidapi.dll libhidapi-0.dl ===================================== ``` Regards
Youw commented 2023-03-17 08:36:59 -05:00 (Migrated from github.com)

The HIDAPI repo is a C library - it does not providea python wrappers (even though such exist).
You're probably trying to use cython-hidapi.

Make sure you've read all of its documentation before opening an issue.

The HIDAPI repo is a C library - it does not providea python wrappers (even though such exist). You're probably trying to use [cython-hidapi](https://github.com/trezor/cython-hidapi). Make sure you've read all of its documentation before opening an issue.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi#518
No description provided.