kivy / kivy/python-for-android

Recipe for mediapipe required to execute python code on android

Open
#2,999 5 comments 0 reactions 0 assignees View on GitHub
feature-request recipe
Dominant language
Python
Stars
8.9k
Forks
2k
Avg merge
12h 20m
Merged PRs (30d)
9

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with the requirements in buildozer.spec and reproduce the Android Studio simulator failure showing an EM_X86_64 versus EM_AARCH64 mismatch for mediapipe. Investigate the existing python-for-android recipe entry points for native packages; done means an APK using the listed requirements runs successfully on the target Android architecture.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, opencv, python
Domain
build-system, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.