kivy / kivy/python-for-android
torch recipe feature request
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 2k
- Avg merge
- 12h 20m
- Merged PRs (30d)
- 9
Description
Hi,
I have a python Kivy app which is using `torch` package. After I compiled it using `buildozer android debug`, installed the APK and tried to run the application, I received the following error:
`OSError: dlopen failed: library "/data/user/0/com.example.app/files/app/_python_bundle/site-packages/torch/lib/libtorch_global_deps.so" not found` .
During my search online I encountered [issue #1538 in kivy/buildozer](https://github.com/kivy/buildozer/issues/1538), where @misl6 mentioned that `torch` is not a plain-python package, so it will need a recipe in order to be cross-compiled.
Is it possible to add this recipe? IMHO it will be very valuable, especially these days, when we see a lot of ML applications.
Thanks,
Idan.
Contributor guide
Research direction
Start with linked Buildozer issue #1538 and reproduce the reported failure from a Python Kivy app built with `buildozer android debug`. The work is complete when an APK using `torch` runs without the missing `libtorch_global_deps.so` error; the issue does not name a target file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python, pytorch
- Domain
- build-system, machine-learning, mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100