-
Notifications
You must be signed in to change notification settings - Fork 901
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
unable to use hid in kivy python mobile application #449
Comments
Please see #373. You didn't provide you build log/error message/build environment/etc. |
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 As I got to know these cant be installed using pip as they are not in pypi as I tried the installation of these in linux system where they got installed using sudo apt-get install libudev-dev libusb-1.0-0-dev libfox-1.6-dev sudo apt-get install libhidapi-hidraw0 so How can I manage it in spec file do guide me |
are you trying to build/run you application on some mobile platform?
this should be more than enough to run hidapi/python application on your host Linux system |
yes its working on linux fine but the thing is for mobile phone application I am using kivy and buildozer and buildozer uses its spec file for making apk and build libraries and as these requirements are not available on pypi so it cant be installed using pip so how can I manage I am little bit confuse Check this |
You have to use Android NDK to build hidapi to get libhidapi-hidraw.so/libhidapi-libusb.so and package it into your APK. This one is entirely on you. |
Hey! i got exactly the same error on windows. What solved your problem? Its not clear to me at all.. spend a lot time with the hidapi lib now but no success. Would be amazing to get some help. |
it seems like "hidraw" is the problem but i cannot find a workaround.. Collecting hidraw
ERROR: Command errored out with exit status 1: 'C:\Users\Lukas Lehnert\AppData\Local\Programs\Python\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\LUKASL |
NOTES, as described in signal11#31: - it is still hard to use HIDAPI on OpenBSD since it is hard to use LIBUSB with HID devices; - there is a name colision with `hid_init` from `usbhid` OpenBSD library;
As I am creating an app in kivy python using buildozer a wrapper for python-for-android where a buildozer.spec file needs to be maintained and I simply wrote hidapi as requirement but it seems not working when says import hid
The text was updated successfully, but these errors were encountered: