Closed HamadAlAbsi closed 3 years ago
On Android I believe it's an issue with packaging your app, could you shed some light on how you're packaging it? I think this is similar to #40
On Android I believe it's an issue with packaging your app, could you shed some light on how you're packaging it? I think this is similar to #40
as I told you in the main post I solved it by only copying the content of the version file directly to the init.py file.
for the buildozer I didn't mention it in the requirements I include arabic_reshaper folder inside my project folder so it worked for me.
I included screen shot of my buildozer it is my pleasure to correct me if I did something wrong.
I've the same problem.I can't solve it. Can you give more help? my Error is:
python : Traceback (most recent call last):
python : File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/app/main.py", line 18, in <module>
python : File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/FinalAPP/arabic_reshaper/__init__.py", line 12, in <module>
python : FileNotFoundError: [Errno 2] No such file or directory: '/data/user/0/org.test.finalapp/files/app/_python_bundle/site-packages/arabic_reshaper/__version__.py'
python : Python for android ended.
and my init.py is:
import os
from .arabic_reshaper import reshape, default_reshaper, ArabicReshaper
from .reshaper_config import (config_for_true_type_font,
ENABLE_NO_LIGATURES,
ENABLE_SENTENCES_LIGATURES,
ENABLE_WORDS_LIGATURES,
ENABLE_LETTERS_LIGATURES,
ENABLE_ALL_LIGATURES)
with open(os.path.join(os.path.dirname(__file__), '__version__.py')) as fh:
exec(fh.read())
What should I change?
This is fixed in release 2.1.3, please upgrade, test, and let me know if it's still broken.
arabicreshaper working fine with linux but not with Android. It show error with
__version__.py
file not found. I traced the problem till i find the issue in the__init__.py
in the lineexec(open(os.path.join(os.path.dirname(__file__), '__version__.py')).read())
_I did solution for it by replacing that line by
__version__ = '2.1.0'
And now it is working fine. So I like to share my solution with you . Thank you