You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm running testapp in your repository but when run application it crashe.
log cat error show this :
11-10 21:06:50.949 17674 17698 I python : Traceback (most recent call last):
11-10 21:06:50.949 17674 17698 I python : File "/home/mohamad/PycharmProjects/kivyDeepLearn/.buildozer/android/app/main.py", line 5, in
11-10 21:06:50.949 17674 17698 I python : File "/home/mohamad/PycharmProjects/kivyDeepLearn/.buildozer/android/platform/build/dists/kivyAndcai/private/lib/python2.7/site-packages/pythonforandroid/recipes/android/init.py", line 1, in
11-10 21:06:50.950 17674 17698 I python : File "/home/mohamad/PycharmProjects/kivyDeepLearn/.buildozer/android/platform/build/dists/kivyAndcai/private/lib/python2.7/site-packages/pythonforandroid/recipe.py", line 10, in
11-10 21:06:50.950 17674 17698 I python : File "/home/mohamad/PycharmProjects/kivyDeepLearn/.buildozer/android/platform/build/dists/kivyAndcai/private/lib/python2.7/site-packages/sh.py", line 96, in
11-10 21:06:50.950 17674 17698 I python : File "/home/mohamad/PycharmProjects/kivyDeepLearn/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a/python2/python-install/lib/python2.7/pty.py", line 11, in
11-10 21:06:50.950 17674 17698 I python : ImportError: No module named tty
The tty module isn't included in the apk as a minor optimisation (almost nothing uses it). You can un-blacklist it if necessary using the whitelist options of buildozer/python-for-android. The term to whilelist is tty.pyo.
Also, you say you're using one of the testapps, but the traceback seems to indicate the code is trying to use the sh module. Is this something you added to the testapp, or did you change anything else away from the parameters in the repository?
and add python-for-android in requirement on spec file like this:
requirements = kivy,python-for-android
but when build and run android application with this command:
sudo buildozer android debug deploy run logcat
when running this error occured:
11-12 21:49:53.843 2872 2909 I python : Traceback (most recent call last):
11-12 21:49:53.843 2872 2909 I python : File "/home/mohamad/PycharmProjects/kivyDeepLearn/.buildozer/android/app/main.py", line 5, in
11-12 21:49:53.843 2872 2909 I python : ImportError: No module named pythonforandroid.recipes.android.src.android.broadcast
11-12 21:49:53.861 2872 2909 I python : Python for android ended.
python-for-android is a build tools for Android, you don't need or want it in your app itself. You just want the android module, so include that in your requirements and import from there.
Activity
inclement commentedon Nov 10, 2017
The tty module isn't included in the apk as a minor optimisation (almost nothing uses it). You can un-blacklist it if necessary using the whitelist options of buildozer/python-for-android. The term to whilelist is
tty.pyo.Also, you say you're using one of the testapps, but the traceback seems to indicate the code is trying to use the sh module. Is this something you added to the testapp, or did you change anything else away from the parameters in the repository?
sm-jalali-f commentedon Nov 12, 2017
My problem is solved. i remove sh library.
but i write my program that receive intent in android app.
my code is:
and add python-for-android in requirement on spec file like this:
requirements = kivy,python-for-android
but when build and run android application with this command:
sudo buildozer android debug deploy run logcat
when running this error occured:
11-12 21:49:53.843 2872 2909 I python : Traceback (most recent call last):
11-12 21:49:53.843 2872 2909 I python : File "/home/mohamad/PycharmProjects/kivyDeepLearn/.buildozer/android/app/main.py", line 5, in
11-12 21:49:53.843 2872 2909 I python : ImportError: No module named pythonforandroid.recipes.android.src.android.broadcast
11-12 21:49:53.861 2872 2909 I python : Python for android ended.
what is my mistake?
inclement commentedon Nov 12, 2017
python-for-android is a build tools for Android, you don't need or want it in your app itself. You just want the android module, so include that in your requirements and import from there.
sm-jalali-f commentedon Nov 12, 2017
I change requirements line to this but not work. and error occured again
requirements = kivy,android
inclement commentedon Nov 12, 2017
Please post the details of the error on the kivy-users mailing list.