0

I make an app using python 3.7.9, kivy 2.2.0 and psycopg2 2.9.1.

The app worked on Windows 10 (Python 3.7) and Ubuntu 16.04 (Python 2.7). In both cases, the application works correctly. It connected to an external postgres database and ran queries.

However, the apk generated by buildozer does not work on android mobile. The app closes before starting.

I used buildozer on windows 10 Ubuntu console (I didn't use VM).

From the phone's bug report, I noticed:

08-02 18:56:07.952 30002 30025 I python  :  Traceback (most recent call last):
08-02 18:56:07.952 30002 30025 I python  :    File "/mnt/d/18_APP_KIVY/.buildozer/android/app/main.py", line 12, in <module>
08-02 18:56:07.953 30002 30025 I python  :    File "/mnt/d/18_APP_KIVY/.buildozer/android/app/conectores.py", line 1, in <module>
08-02 18:56:07.953 30002 30025 I python  :    File "/mnt/d/18_APP_KIVY/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/appteste/psycopg2/__init__.py", line 51, in <module>
08-02 18:56:07.954 30002 30025 I python  :  ImportError: dlopen failed: "/data/data/org.empresa.appteste/files/app/_python_bundle/site-packages/psycopg2/_psycopg.so" is 64-bit instead of 32-bit
08-02 18:56:07.954 30002 30025 I python  : Python for android ended.
08-02 18:56:08.238   850   850 I Zygote  : Process 30002 exited cleanly (255)

While I mounted the screens, the application ran normally on android. The error came up after inserting the psycopg2 lib.

I followed web tips and put kivy==master in buildozer.spec, but it didn't change anything.

Does anyone know any way to resolve this issue?

  • 1
    Does this answer your question? [React native expection java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/{package}/lib-main/libgnustl\_shared.so" is 32-bit instead of 64-bit](https://stackoverflow.com/questions/40694285/react-native-expection-java-lang-unsatisfiedlinkerror-dlopen-failed-data-dat) – Henry Twist Aug 03 '21 at 04:23

0 Answers0