python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

python-bidi & pybidi vs buildozer (no recipe in .buildozer/...)

Open metkoc opened this issue 8 months ago • 1 comments

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: [email protected] 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

metkoc avatar Jun 26 '25 23:06 metkoc

Solved by downgrading to python-bidi==0.4.2

metkoc avatar Jun 29 '25 02:06 metkoc