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

Issue with libhidapi-libusb.so #23

Open
wispii opened this issue Aug 22, 2022 · 9 comments
Open

Issue with libhidapi-libusb.so #23

wispii opened this issue Aug 22, 2022 · 9 comments

Comments

@wispii
Copy link

wispii commented Aug 22, 2022

Been trying to use joycontrol on my linux PC, but I keep encountering this Issue

Traceback (most recent call last):
File "./run_controller_cli.py", line 10, in
from joycontrol import logging_default as log, utils
File "/home/z-r1nwoomy/joycontrol/joycontrol/utils.py", line 5, in
import hid
File "/usr/local/lib/python3.8/dist-packages/hid/init.py", line 83, in
hidapi.hid_get_input_report.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_size_t]
File "/usr/lib/python3.8/ctypes/init.py", line 386, in getattr
func = self.getitem(name)
File "/usr/lib/python3.8/ctypes/init.py", line 391, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib/x86_64-linux-gnu/libhidapi-libusb.so: undefined symbol: hid_get_input_report

I have tried re-installing all the modules needed, as well as building hidapi manually, but nothing has helped.

@darrenchang
Copy link

Hi, please give this solution a try.
#17 (comment)

@darrenchang
Copy link

This issue is a duplicate of #17 (comment)

@wispii
Copy link
Author

wispii commented Aug 22, 2022

Hi, please give this solution a try. #17 (comment)

I've tried the soluton, but now i'm getting this error:
Traceback (most recent call last):
File "./run_controller_cli.py", line 10, in
from joycontrol import logging_default as log, utils
File "/home/z-r1nwoomy/joycontrol/joycontrol/utils.py", line 5, in
import hid
File "/usr/local/lib/python3.8/dist-packages/hid/init.py", line 30, in
raise ImportError(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

@darrenchang
Copy link

What is your OS version?

@wispii
Copy link
Author

wispii commented Aug 22, 2022

What is your OS version?

Linux Mint 20.3

@darrenchang
Copy link

Did you make sure to move your compiled libhidapi-hidraw.so.0 to
/usr/lib/arm-linux-gnueabihf/libhidapi-hidraw.so.0?
And make sure you change the architecture. Mine is arm-linux. yours might my x86_64_<something>

@wispii
Copy link
Author

wispii commented Aug 22, 2022

Yeah, I made sure it was X86_64-linux-gnu when doing the copy commands.

@darrenchang
Copy link

That's strange. Do you have a raspberry pi that you try this on? I'm using pi 3 and it works flawless. I have to compile my own libhidapi-hidraw.so.0 on pi 3 as well.

@wispii
Copy link
Author

wispii commented Aug 22, 2022

Sadly no.

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