-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no module named tty #1165
Comments
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 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? |
My problem is solved. i remove sh library.
and add python-for-android in requirement on spec file like this: what is my mistake? |
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. |
I change requirements line to this but not work. and error occured again |
Please post the details of the error on the kivy-users mailing list. |
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
how to fix it???
The text was updated successfully, but these errors were encountered: