kivy / kivy/python-for-android
python-bidi & pybidi vs buildozer (no recipe in .buildozer/...)
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 2k
- Avg merge
- 12h 20m
- Merged PRs (30d)
- 9
Description
Hello everyone,
I am using python-bidi and arabic-reshaper in my project to use Arabic letters (right to left) however, buildozer always returns an error about python-bidi and I couldn't get any solution for this so far and there is no bidi alternative whatsoever. pybidi is also not working at all
I may have a knowledge gap whether only Arabic Reshaper (works without issue) can solve my problem or not but there is no doubt buildozer is not compiling bidi as far as I am concerned.
I already managed building apk and installed on a phone but it's not working.
Here is where it got stuck based on adb logcat;
......................
06-26 10:33:48.659 7782 7822 I python : Traceback (most recent call last):
06-26 10:33:48.659 7782 7822 I python : File "/home/meto/Desktop/project/.buildozer/android/app/main.py", line 9, in
06-26 10:33:48.660 7782 7822 I python : ModuleNotFoundError: No module named 'bidi'
06-26 10:33:48.660 7782 7822 I python : Python for android ended.
06-26 10:33:48.726 6369 6369 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.chromesync.service.zeroparty.START dat=chimera-action: cmp=com.google.android.gms/.chimera.GmsApiService }
06-26 10:33:48.929 7782 7822 E libc++abi: terminating
06-26 10:33:48.929 7782 7822 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 7822 (SDLThread), pid 7782 (SDLActivity)
......................
"main.py", line 9" has this line of code "from bidi.algorithm import get_display"
Also tried with pybid but it returns this error;
.............................../main.py", line 10, in
from pybidi.algorithm import get_display
ModuleNotFoundError: No module named 'pybidi'
..> pip show pybidi
Name: PyBidi
Version: 1.0
Summary: language bindings for FriBidi, for Python 3.3 or later
Home-page: https://github.com/ldo/pybidi
Author: Lawrence D'Oliveiro
Author-email: ldo@geek-central.gen.nz
License: UNKNOWN
Location: C:\Users\.......\.venv\Lib\site-
packages
Requires:
Required-by:
Can anyone guide me thru on this please? I am looking forward to hearing from you.
Many thanks in advance
Contributor guide
Research direction
Start with the buildozer configuration and the generated .buildozer/android/app/main.py, then reproduce the APK failure and inspect the adb logcat traceback. Check how the build handles the python-bidi and pybidi dependencies; done means the packaged APK can import the requested bidi module and run past main.py line 9.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100