Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suddenly got error about missing libraries "Unable to load any of the following libraries" #52

Open
andkirby opened this issue Jan 10, 2022 · 1 comment

Comments

@andkirby
Copy link

andkirby commented Jan 10, 2022

It was working fine, but for some reason, I started getting this error.

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.dll

It happens on in line with import hid.

Tried to uninstall/install hid package. The same.

Why?

OS: Windows 11
CLI: Git bash
Python: 3.9.9 (venv)

@neozetare
Copy link

Had the same, don't know how to fix it but found a workaround: load the hidapi DLL before importing the hid library.

import os, ctypes
ctypes.CDLL('/path/to/hidapi.dll'))```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants