kivy / python-for-android

Turn your Python application into an Android APK
https://python-for-android.readthedocs.io
MIT License
8.36k stars 1.86k forks source link

Recipe for mediapipe required to execute python code on android #2999

Open ghost opened 7 months ago

ghost commented 7 months ago

I built a python project with Kivy, opencv and mediapipe and Ibuilt an apk for it using buildozer. The apk failed to run in simulator in Android Studio with error: ImportError: dlopen failed: "/data/data/org.test.myapp/files/app/_python_bundle/site-packages/mediapipe/python/_framework_bindings.so" is for EM_X86_64 (62) instead of EM_AARCH64 (183)

I would need a recipe for mediapipe for it to be successful.

buildozer.spec

requirements = python3,kivy==2.3.0,mediapipe,opencv,opencv_extras,kivymd,numpy,pillow

Muhaiminnn commented 7 months ago

mee too, is there any solution??

T-Dynamos commented 7 months ago

Please understand that adding this recipe isn't worth, android has already mediapipe apis which you can use with pyjnius.

Sahil-pixel commented 5 months ago

we python users need this .

yushoajun commented 4 months ago

is this problem be solved? i got the same one, i don't know how to solve it