You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
libpython2.7.so: is missing DT_SONAME using buildozer with latest VirtualBox VM for Android Buildozer (Version 2.0, released the 13 May 2017). #1314
I have setup a new VirtualBox VM for Android Buildozer (Version 2.0, released the 13 May 2017).
In this environment I wanted to build an APK for the KivyMD Kitchensink_demo (https://gitlab.com/kivymd/KivyMD) which runs fine on my Windows development environment and standalone build using PyInstaller.
The command: buildozer android debug produces an APK in the bin directory.
Running the APK on the device (Huawei P10) causes a crash and gives the following error log.
07-23 11:41:01.995 23581 23581 W linker : /data/app/org.test.kivymd_kitchen_sink-1/lib/arm/libpython2.7.so: is missing DT_SONAME will use basename as a replacement: "libpython2.7.so"
07-23 11:41:02.001 23581 23581 W linker : /data/data/org.test.kivymd_kitchen_sink/files/app/lib/python2.7/lib-dynload/_io.so: is missing DT_SONAME will use basename as a replacement: "_io.so"
07-23 11:41:02.003 23581 23581 W linker : /data/data/org.test.kivymd_kitchen_sink/files/app/lib/python2.7/lib-dynload/unicodedata.so: is missing DT_SONAME will use basename as a replacement: "unicodedata.so"
07-23 11:41:02.005 23581 23581 W linker : /data/data/org.test.kivymd_kitchen_sink/files/app/lib/python2.7/lib-dynload/_ctypes.so: is missing DT_SONAME will use basename as a replacement: "_ctypes.so"
Thank you for sharing your findings, now I see that the logs you shared were only warnings ant not errors.
Yes it's still an issue and we should at least document the behaviour. The resolution could be to update the troubleshooting until we have a proper fix.
I didn't give it a try myself yet. But yes ideally we would have a simple scenario and the actual error message and stacktrace. We have the locale.setlocale() scenario, now I'd like the stack trace so we can document it.
07-23 11:41:03.630 23581 23612 I python : File "/home/kivy/Desktop/kivymd-test/demos/kitchen_sink/.buildozer/android/app/main.py", line 920, in <module>
07-23 11:41:03.631 23581 23612 I python : File "/home/kivy/Desktop/kivymd-test/demos/kitchen_sink/.buildozer/android/app/main.py", line 942, in KitchenSink
07-23 11:41:03.631 23581 23612 I python : File "/home/kivy/Desktop/kivymd-test/demos/kitchen_sink/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7/locale.py", line 531, in setlocale
07-23 11:41:03.631 23581 23612 I python : File "/home/kivy/Desktop/kivymd-test/demos/kitchen_sink/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7/locale.py", line 80, in setlocale
07-23 11:41:03.632 23581 23612 I python : ValueError: _locale emulation only supports "C" locale
07-23 11:41:03.681 23581 23612 I python : Python for android ended.
Activity
AndreMiras commentedon Jul 23, 2018
I think I've seen that before on Android 4. Which version are you running?
BillBridge commentedon Jul 23, 2018
I am running Android Version 6.0
BillBridge commentedon Jul 23, 2018
And this is the Buildozer.spec file:
BillBridge commentedon Jul 23, 2018
Problem solved!
The crash is caused by the following statement:
import locale
locale.setlocale(category=locale.LC_ALL,locale="Dutch")
I have commented out these two lines and then the app builds and works fine.
However, still might be an issue p4a?
AndreMiras commentedon Jul 24, 2018
Thank you for sharing your findings, now I see that the logs you shared were only warnings ant not errors.
Yes it's still an issue and we should at least document the behaviour. The resolution could be to update the troubleshooting until we have a proper fix.
I didn't give it a try myself yet. But yes ideally we would have a simple scenario and the actual error message and stacktrace. We have the
locale.setlocale()scenario, now I'd like the stack trace so we can document it.BillBridge commentedon Jul 24, 2018
I enclose the logcat. Search for:
logcat.txt
AndreMiras commentedon Jul 24, 2018
That's way better, thanks for the help!
inclement commentedon Jan 30, 2019
Closing as not an issue, it doesn't seem to matter if this happens, and there seems to be no actual crash currently associated with it.