-
Notifications
You must be signed in to change notification settings - Fork 69
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
OSError: dlopen failed: library "libusb-1.0.so" not found #78
Comments
Hello and thanks for the report. About So the ideal fix would be to somehow get On this last point, I have just pushed a proof-of-concept change to allow programs to give |
Checking libusb usage on android, it looks like there are a few more roadblocks:
For the first point, the difficulty is going to be the lifecycle reversal: normally, |
Take note libusb itself have multiple issues under Android (non rooted device). Possible now: libusb/libusb#830 (which is inline with the above comments) I tried to get pyusb to work under Termux Android but failed: pyusb/pyusb#285 |
This looks very good. It looks like it would solve both of the above roadblocks. |
I receive this error
on Linux as user of a python application that embeds python-libusb1. It seems that python-libusb1 tries to load from a file A symlink fixes the problem. I had a look at the packages of current Debian and Ubuntu distros and found out that
This explains the behavior. What is the proper fix? Is the problem caused by a bug in python-libusb1 or do I need to tweak my setup? |
Note that this bug is about android, which has its own set of peculiarities about native library support. But it's not like there is a lot of traffic here anyway. IMHO this is a I very recently discovered by chance such apparent shift in the |
A first cursory check of Debian packager documentation suggests this is not a new change. The closest entry I can find in the changelog dates from 2008, but it is not even clear whether this is about Then, checking my code some more, I realize that it may have used the fallback codepath more than anticipated: if loading But python's ctype documentation of
so the outcome may differ when any is unavailable... Also:
Indeed, strace'ing python3 on my machine shows it forks a
|
Thanks for your quick response! I ran the Still the library is not found without a symlink:
(The application is wrapped in an AppImage. In an AppImage, the command |
The field of loading shared libraries is new to me. I just read a helpful blog post about it, and I get the impression that a library file name without a trailing ABI number is meant for development purposes only. From ctypes - Loading dynamic link libraries:
... and the example contains a file name including ABI version. When running |
I pushed a pair of changes to master which should address this issue. I am unfortunately not ready to release the next version just yet (there is still work to do in the |
Thanks! I have a workaround, so there's no urgent need for a release. |
Hello,
I am building an app using Kivy. When running the app in android using
buildozer android run logcat
I get the error:When looking at the libusb1.py file, in the _loadLibrary function I see that my system 'Linux' is not catered for, hence the error (I stand to be corrected).
I thought of creating a recipe so I could edit the libusb1.py file and add the path to the
libusb-1.0.so.0
in my computer which is'/lib/x86_64-linux-gnu/libusb-1.so.0'
but that is something I do not know since I am new to app development using Kivy and buildozer.If there are any workarounds for this kind of issue, please help.
The text was updated successfully, but these errors were encountered: