easyhid couldnt load hidapi with ctypes.util.find_library('hidapi') on Mac M1 - Solution #24
OndrejPistora
started this conversation in
General
Replies: 2 comments
-
Oh, sorry, I do not have a space mouse near me right now. I will look at it in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Look at the new Troubleshooting section. For me, everything works fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was getting
AttributeError: function/symbol 'hid_enumerate' not found in library '': dlsym(RTLD_DEFAULT, hid_enumerate): symbol not found
on Mac M1
ie easyhid wasnt able to find hidapi library
i installed hidapi using homebrew. it is indeed in /opt/homebrew/Cellar/hidapi/0.14.0/lib but still command
export DYLD_LIBRARY_PATH=/opt/homebrew/Cellar/hidapi/0.14.0/lib:$DYLD_LIBRARY_PATH
wasnt helping me fix it. (also as far as I undestood it its temporary until you close terminal so you would need to append it to .zshrc which is not recommended)
i fixed it by creating symlink
sudo ln -s /opt/homebrew/Cellar/hidapi/0.14.0/lib/libhidapi.dylib /usr/local/lib/libhidapi.dylib
Beta Was this translation helpful? Give feedback.
All reactions