change default Ubuntu(20.04) Python

82 views
Skip to first unread message

mehdi alizade

unread,
Sep 13, 2020, 11:07:53 AM9/13/20
to Kivy users support
As you know, Kivy does not work on Python 3.8. How can I change the default Ubuntu(20.04) Python from Python3.8 to Python3.7?

Andreas Ecker

unread,
Sep 13, 2020, 11:19:06 AM9/13/20
to kivy-...@googlegroups.com
Never change the Python version of your operating system, because Ubuntu relies-on / using it and by replacing/changing it you could break system tasks/processes.

Instead use a python virtual environment. I highly recommend pyenv but there are lots of other alternatives like venv (integrated in Python) or virtualenv.



Am So., 13. Sept. 2020 um 16:08 Uhr schrieb mehdi alizade <aliza...@gmail.com>:
As you know, Kivy does not work on Python 3.8. How can I change the default Ubuntu(20.04) Python from Python3.8 to Python3.7?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b6b94f33-4584-45eb-95ff-1e6d27422d2do%40googlegroups.com.
Message has been deleted
Message has been deleted

Andreas Ecker

unread,
Sep 13, 2020, 11:44:48 AM9/13/20
to kivy-...@googlegroups.com
if you use Ubuntu (as I do) then pyenv is a very good candidate for creating virtual python environments, because it offers most of the available python versions.

E.g. my pyenv offering the following Python versions:

  2.1.3
  2.2.3
  2.3.7
  2.4.0
  2.4.1
  2.4.2
  2.4.3
  2.4.4
  2.4.5
  2.4.6
  2.5.0
  2.5.1
  2.5.2
  2.5.3
  2.5.4
  2.5.5
  2.5.6
  2.6.6
  2.6.7
  2.6.8
  2.6.9
  2.7.0
  2.7-dev
  2.7.1
  2.7.2
  2.7.3
  2.7.4
  2.7.5
  2.7.6
  2.7.7
  2.7.8
  2.7.9
  2.7.10
  2.7.11
  2.7.12
  2.7.13
  2.7.14
  2.7.15
  2.7.16
  2.7.17
  3.0.1
  3.1.0
  3.1.1
  3.1.2
  3.1.3
  3.1.4
  3.1.5
  3.2.0
  3.2.1
  3.2.2
  3.2.3
  3.2.4
  3.2.5
  3.2.6
  3.3.0
  3.3.1
  3.3.2
  3.3.3
  3.3.4
  3.3.5
  3.3.6
  3.3.7
  3.4.0
  3.4-dev
  3.4.1
  3.4.2
  3.4.3
  3.4.4
  3.4.5
  3.4.6
  3.4.7
  3.4.8
  3.4.9
  3.4.10
  3.5.0
  3.5-dev
  3.5.1
  3.5.2
  3.5.3
  3.5.4
  3.5.5
  3.5.6
  3.5.7
  3.5.8
  3.5.9
  3.6.0
  3.6-dev
  3.6.1
  3.6.2
  3.6.3
  3.6.4
  3.6.5
  3.6.6
  3.6.7
  3.6.8
  3.6.9
  3.6.10
  3.7.0
  3.7-dev
  3.7.1
  3.7.2
  3.7.3
  3.7.4
  3.7.5
  3.7.5rc1
  3.7.6
  3.8.0
  3.8-dev
  3.8.1
  3.8.2
  3.9.0a4
  3.9-dev
  activepython-2.7.14
  activepython-3.5.4
  activepython-3.6.0
  anaconda-1.4.0
  anaconda-1.5.0
  anaconda-1.5.1
  anaconda-1.6.0
  anaconda-1.6.1
  anaconda-1.7.0
  anaconda-1.8.0
  anaconda-1.9.0
  anaconda-1.9.1
  anaconda-1.9.2
  anaconda-2.0.0
  anaconda-2.0.1
  anaconda-2.1.0
  anaconda-2.2.0
  anaconda-2.3.0
  anaconda-2.4.0
  anaconda-4.0.0
  anaconda2-2.4.0
  anaconda2-2.4.1
  anaconda2-2.5.0
  anaconda2-4.0.0
  anaconda2-4.1.0
  anaconda2-4.1.1
  anaconda2-4.2.0
  anaconda2-4.3.0
  anaconda2-4.3.1
  anaconda2-4.4.0
  anaconda2-5.0.0
  anaconda2-5.0.1
  anaconda2-5.1.0
  anaconda2-5.2.0
  anaconda2-5.3.0
  anaconda2-5.3.1
  anaconda2-2018.12
  anaconda2-2019.03
  anaconda2-2019.07
  anaconda3-2.0.0
  anaconda3-2.0.1
  anaconda3-2.1.0
  anaconda3-2.2.0
  anaconda3-2.3.0
  anaconda3-2.4.0
  anaconda3-2.4.1
  anaconda3-2.5.0
  anaconda3-4.0.0
  anaconda3-4.1.0
  anaconda3-4.1.1
  anaconda3-4.2.0
  anaconda3-4.3.0
  anaconda3-4.3.1
  anaconda3-4.4.0
  anaconda3-5.0.0
  anaconda3-5.0.1
  anaconda3-5.1.0
  anaconda3-5.2.0
  anaconda3-5.3.0
  anaconda3-5.3.1
  anaconda3-2018.12
  anaconda3-2019.03
  anaconda3-2019.07
  anaconda3-2019.10
  ironpython-dev
  ironpython-2.7.4
  ironpython-2.7.5
  ironpython-2.7.6.3
  ironpython-2.7.7
  jython-dev
  jython-2.5.0
  jython-2.5-dev
  jython-2.5.1
  jython-2.5.2
  jython-2.5.3
  jython-2.5.4-rc1
  jython-2.7.0
  jython-2.7.1
  micropython-dev
  micropython-1.9.3
  micropython-1.9.4
  micropython-1.10
  micropython-1.11
  micropython-1.12
  miniconda-latest
  miniconda-2.2.2
  miniconda-3.0.0
  miniconda-3.0.4
  miniconda-3.0.5
  miniconda-3.3.0
  miniconda-3.4.2
  miniconda-3.7.0
  miniconda-3.8.3
  miniconda-3.9.1
  miniconda-3.10.1
  miniconda-3.16.0
  miniconda-3.18.3
  miniconda2-latest
  miniconda2-3.18.3
  miniconda2-3.19.0
  miniconda2-4.0.5
  miniconda2-4.1.11
  miniconda2-4.3.14
  miniconda2-4.3.21
  miniconda2-4.3.27
  miniconda2-4.3.30
  miniconda3-latest
  miniconda3-2.2.2
  miniconda3-3.0.0
  miniconda3-3.0.4
  miniconda3-3.0.5
  miniconda3-3.3.0
  miniconda3-3.4.2
  miniconda3-3.7.0
  miniconda3-3.8.3
  miniconda3-3.9.1
  miniconda3-3.10.1
  miniconda3-3.16.0
  miniconda3-3.18.3
  miniconda3-3.19.0
  miniconda3-4.0.5
  miniconda3-4.1.11
  miniconda3-4.2.12
  miniconda3-4.3.11
  miniconda3-4.3.14
  miniconda3-4.3.21
  miniconda3-4.3.27
  miniconda3-4.3.30
  pypy-c-jit-latest
  pypy-c-nojit-latest
  pypy-dev
  pypy-stm-2.3
  pypy-stm-2.5.1
  pypy-1.5-src
  pypy-1.5
  pypy-1.6
  pypy-1.7
  pypy-1.8
  pypy-1.9
  pypy-2.0-src
  pypy-2.0
  pypy-2.0.1-src
  pypy-2.0.1
  pypy-2.0.2-src
  pypy-2.0.2
  pypy-2.1-src
  pypy-2.1
  pypy-2.2-src
  pypy-2.2
  pypy-2.2.1-src
  pypy-2.2.1
  pypy-2.3-src
  pypy-2.3
  pypy-2.3.1-src
  pypy-2.3.1
  pypy-2.4.0-src
  pypy-2.4.0
  pypy-2.5.0-src
  pypy-2.5.0
  pypy-2.5.1-src
  pypy-2.5.1
  pypy-2.6.0-src
  pypy-2.6.0
  pypy-2.6.1-src
  pypy-2.6.1
  pypy-4.0.0-src
  pypy-4.0.0
  pypy-4.0.1-src
  pypy-4.0.1
  pypy-5.0.0-src
  pypy-5.0.0
  pypy-5.0.1-src
  pypy-5.0.1
  pypy-5.1-src
  pypy-5.1
  pypy-5.1.1-src
  pypy-5.1.1
  pypy-5.3-src
  pypy-5.3
  pypy-5.3.1-src
  pypy-5.3.1
  pypy-5.4-src
  pypy-5.4
  pypy-5.4.1-src
  pypy-5.4.1
  pypy-5.6.0-src
  pypy-5.6.0
  pypy-5.7.0-src
  pypy-5.7.0
  pypy-5.7.1-src
  pypy-5.7.1
  pypy2-5.3-src
  pypy2-5.3
  pypy2-5.3.1-src
  pypy2-5.3.1
  pypy2-5.4-src
  pypy2-5.4
  pypy2-5.4.1-src
  pypy2-5.4.1
  pypy2-5.6.0-src
  pypy2-5.6.0
  pypy2-5.7.0-src
  pypy2-5.7.0
  pypy2-5.7.1-src
  pypy2-5.7.1
  pypy2.7-5.8.0-src
  pypy2.7-5.8.0
  pypy2.7-5.9.0-src
  pypy2.7-5.9.0
  pypy2.7-5.10.0-src
  pypy2.7-5.10.0
  pypy2.7-6.0.0-src
  pypy2.7-6.0.0
  pypy2.7-7.0.0-src
  pypy2.7-7.0.0
  pypy2.7-7.1.0-src
  pypy2.7-7.1.0
  pypy2.7-7.1.1-src
  pypy2.7-7.1.1
  pypy2.7-7.2.0-src
  pypy2.7-7.2.0
  pypy2.7-7.3.0-src
  pypy2.7-7.3.0
  pypy3-dev
  pypy3-2.3.1-src
  pypy3-2.3.1
  pypy3-2.4.0-src
  pypy3-2.4.0
  pypy3.3-5.2-alpha1-src
  pypy3.3-5.2-alpha1
  pypy3.3-5.5-alpha-src
  pypy3.3-5.5-alpha
  pypy3.5-c-jit-latest
  pypy3.5-5.7-beta-src
  pypy3.5-5.7-beta
  pypy3.5-5.7.1-beta-src
  pypy3.5-5.7.1-beta
  pypy3.5-5.8.0-src
  pypy3.5-5.8.0
  pypy3.5-5.9.0-src
  pypy3.5-5.9.0
  pypy3.5-5.10.0-src
  pypy3.5-5.10.0
  pypy3.5-5.10.1-src
  pypy3.5-5.10.1
  pypy3.5-6.0.0-src
  pypy3.5-6.0.0
  pypy3.5-7.0.0-src
  pypy3.5-7.0.0
  pypy3.6-7.0.0-src
  pypy3.6-7.0.0
  pypy3.6-7.1.0-src
  pypy3.6-7.1.0
  pypy3.6-7.1.1-src
  pypy3.6-7.1.1
  pypy3.6-7.2.0-src
  pypy3.6-7.2.0
  pypy3.6-7.3.0-src
  pypy3.6-7.3.0
  pyston-0.5.1
  pyston-0.6.0
  pyston-0.6.1
  stackless-dev
  stackless-2.7-dev
  stackless-2.7.2
  stackless-2.7.3
  stackless-2.7.4
  stackless-2.7.5
  stackless-2.7.6
  stackless-2.7.7
  stackless-2.7.8
  stackless-2.7.9
  stackless-2.7.10
  stackless-2.7.11
  stackless-2.7.12
  stackless-2.7.14
  stackless-3.2.2
  stackless-3.2.5
  stackless-3.3.5
  stackless-3.3.7
  stackless-3.4-dev
  stackless-3.4.1
  stackless-3.4.2
  stackless-3.4.7
  stackless-3.5.4





Am So., 13. Sept. 2020 um 16:29 Uhr schrieb mehdi alizade <aliza...@gmail.com>:
Thanks for sharing this useful information.
Do you have a suggestion for my problem?


On Sunday, September 13, 2020 at 7:49:06 PM UTC+4:30, Andreas Ecker wrote:
Never change the Python version of your operating system, because Ubuntu relies-on / using it and by replacing/changing it you could break system tasks/processes.

Instead use a python virtual environment. I highly recommend pyenv but there are lots of other alternatives like venv (integrated in Python) or virtualenv.



Am So., 13. Sept. 2020 um 16:08 Uhr schrieb mehdi alizade <aliz...@gmail.com>:
As you know, Kivy does not work on Python 3.8. How can I change the default Ubuntu(20.04) Python from Python3.8 to Python3.7?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
Message has been deleted

Robert Flatt

unread,
Sep 13, 2020, 5:22:03 PM9/13/20
to Kivy users support
I think Kivy does work on Python 3.8, as shown by the Android builds which default to using 3.8.
The trick is kivy==2.0.0rc3   , it is a release candidate so of course there are no install instructions yet......

mehdi alizade

unread,
Sep 13, 2020, 7:43:49 PM9/13/20
to Kivy users support
Thank you so much.
It was the right solution.
I was able to use Python 3.7.0 and install Kivy.
Unfortunately, I still have a problem converting to an Android file, but I did not find a solution.
My error is:

################################################################################
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name simplebattery --name battery --version 0.2 --package org.test.simplebattery --minsdk 21 --ndk-api 21 --private /home/mehdi/.pyenv/versions/3.7.0/envs/myproject/.buildozer/android/app --android-entrypoint org.kivy.android.PythonActivity --android-apptheme @android:style/Theme.NoTitleBar --orientation portrait --window --copy-libs --arch armeabi-v7a --color=always --storage-dir="/home/mehdi/.pyenv/versions/3.7.0/envs/myproject/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21

# ENVIRONMENT:
#     SHELL = '/bin/bash'
#     SESSION_MANAGER = 'local/mehdi-X556URK:@/tmp/.ICE-unix/1683,unix/mehdi-X556URK:/tmp/.ICE-unix/1683'
#     QT_ACCESSIBILITY = '1'
#     COLORTERM = 'truecolor'
#     XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg'
#     XDG_MENU_PREFIX = 'gnome-'
#     GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'
#     GTK_IM_MODULE = 'ibus'
#     QT4_IM_MODULE = 'ibus'
#     LC_ADDRESS = 'az_IR'
#     GNOME_SHELL_SESSION_MODE = 'ubuntu'
#     LC_NAME = 'az_IR'
#     SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
#     XMODIFIERS = '@im=ibus'
#     DESKTOP_SESSION = 'ubuntu'
#     LC_MONETARY = 'az_IR'
#     SSH_AGENT_PID = '1566'
#     GTK_MODULES = 'gail:atk-bridge'
#     DBUS_STARTER_BUS_TYPE = 'session'
#     PWD = '/home/mehdi/.pyenv/versions/myproject'
#     LOGNAME = 'mehdi'
#     XDG_SESSION_DESKTOP = 'ubuntu'
#     XDG_SESSION_TYPE = 'x11'
#     GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'
#     XAUTHORITY = '/run/user/1000/gdm/Xauthority'
#     WINDOWPATH = '2'
#     HOME = '/home/mehdi'
#     USERNAME = 'mehdi'
#     IM_CONFIG_PHASE = '1'
#     LC_PAPER = 'az_IR'
#     LANG = 'en_US.UTF-8'
#     LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
#     XDG_CURRENT_DESKTOP = 'ubuntu:GNOME'
#     VIRTUAL_ENV = '/home/mehdi/.pyenv/versions/3.7.0/envs/myproject'
#     VTE_VERSION = '6003'
#     GNOME_TERMINAL_SCREEN = '/org/gnome/Terminal/screen/b2ac2f1b_c1b1_4c4a_aad3_f7fd627ba01d'
#     INVOCATION_ID = 'cadd7a17819d42b7a7b947af9afdaed5'
#     MANAGERPID = '1374'
#     CLUTTER_IM_MODULE = 'ibus'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     XDG_SESSION_CLASS = 'user'
#     TERM = 'xterm-256color'
#     LC_IDENTIFICATION = 'az_IR'
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     USER = 'mehdi'
#     GNOME_TERMINAL_SERVICE = ':1.291'
#     DISPLAY = ':0'
#     SHLVL = '1'
#     LC_TELEPHONE = 'az_IR'
#     QT_IM_MODULE = 'ibus'
#     LC_MEASUREMENT = 'az_IR'
#     DBUS_STARTER_ADDRESS = 'unix:path=/run/user/1000/bus,guid=d03b871929f7eb60bf17e7515f5e772c'
#     XDG_RUNTIME_DIR = '/run/user/1000'
#     PS1 = ('(myproject) \\[\\e]0;\\u@\\h: '
 '\\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ ')
#     PYENV_ROOT = '/home/mehdi/.pyenv'
#     LC_TIME = 'az_IR'
#     JOURNAL_STREAM = '9:38262'
#     XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop'
#     PATH = '/home/mehdi/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/mehdi/.pyenv/versions/3.7.0/envs/myproject/bin:/home/mehdi/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
#     GDMSESSION = 'ubuntu'
#     DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus,guid=d03b871929f7eb60bf17e7515f5e772c'
#     LC_NUMERIC = 'az_IR'
#     _ = '/usr/local/bin/buildozer'
#     OLDPWD = '/home/mehdi/.pyenv/versions'
#     PACKAGES_PATH = '/home/mehdi/.buildozer/android/packages'
#     ANDROIDSDK = '/home/mehdi/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/mehdi/.buildozer/android/platform/android-ndk-r19c'
#     ANDROIDAPI = '29'
#     ANDROIDMINAPI = '21'
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
################################################################################

Geekademy

unread,
Sep 13, 2020, 8:10:32 PM9/13/20
to kivy-...@googlegroups.com
It was mentioned earlier but easy to miss:

https://github.com/pyenv/pyenv

I use it for a project at work to provide Python 3.6.



On 2020-09-13 08:46, mehdi alizade wrote:
> Thanks for sharing this usefull information.
> I have used venv but because the default operating system is Python3.8 the
> problem has still.
> Python Virtual Environment is still 3.8.

Robert Flatt

unread,
Sep 13, 2020, 9:47:58 PM9/13/20
to Kivy users support
 # In case of a bug report, please add a full log with log_level = 2

the log_level is set in the buildozer.spec, then 'buildozer appclean' then 'buildozer android debug'

You will see additional info telling you the nature of the error.

Also re-check that the install instructions were followed:

mehdi alizade

unread,
Sep 14, 2020, 9:17:30 AM9/14/20
to Kivy users support
Dear Robert
I greatly appreciate your help.
I used this kivy==2.0.0rc3  command and https://buildozer.readthedocs.io/en/latest/installation.html#targeting-android then problem was solved.
Now for install app in android, I have a problem. In "1.jpg" I chose "Install anyway". But my app does not run. "2.jpg" indicates its error.
1.jpg
2.jpg

mehdi alizade

unread,
Sep 14, 2020, 11:26:49 AM9/14/20
to Kivy users support
Now I turned off all of Play Protect settings. but without any error, app not open.

Degenerate Tech

unread,
Sep 14, 2020, 12:36:41 PM9/14/20
to Kivy users support
allow unknown source in android settings 

Degenerate Tech

unread,
Sep 14, 2020, 12:42:48 PM9/14/20
to Kivy users support
 is your app  successfully installed or not ?
 if yes then  connect your phone with pc via usb and turn on usb debugging in your phone.then 
run        adb logcat *:S python:D      in your os and see the log 
 
On Monday, September 14, 2020 at 8:56:49 PM UTC+5:30, mehdi alizade wrote:

Robert Flatt

unread,
Sep 14, 2020, 1:35:33 PM9/14/20
to Kivy users support
Now I turned off all of Play Protect settings. but without any error, app not open

There is probably some error in porting the app. 

Look in the logcat for "Traceback", the cause of the crash will be in the following lines.

If this is your first app, try Hello World first - that works out of the box unless you have some install issue.

mehdi alizade

unread,
Sep 15, 2020, 6:36:40 AM9/15/20
to Kivy users support
Thank you. some apps is done. but I have a error.
My App installed but when running after kivy loading, it was closed.
when I run adb logcat *:S python:D,
indicated my traceback is :
09-15 14:52:05.369 24525 24568 I python  :  Traceback (most recent call last):
09-15 14:52:05.369 24525 24568 I python  :    File "/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest/.buildozer/android/app/main.py", line 6, in <module>
09-15 14:52:05.370 24525 24568 I python  :  ModuleNotFoundError: No module named 'plyer'
09-15 14:52:05.370 24525 24568 I python  : Python for android ended.

mehdi@mehdi-X556URK:/media/mehdi/2436ef15-26cf-4be8-9eed-6befb73eddd8/mehdi/Documents/BuildozerTest$ pip3 install plyer
Requirement already satisfied: plyer in /home/mehdi/.local/lib/python3.8/site-packages (1.4.3)

I was install plyer. yet my error is "No module named 'plyer' ".

Degenerate Tech

unread,
Sep 15, 2020, 8:48:48 AM9/15/20
to Kivy users support
okk add plyer in buildozer.spec



# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy,pyjnius,android,plyer
 and run build apk again 

mehdi alizade

unread,
Sep 15, 2020, 9:03:54 AM9/15/20
to Kivy users support
BOOOOOOM!!!
App is running.!!!!
Thank you.

Degenerate Tech

unread,
Sep 15, 2020, 9:48:21 AM9/15/20
to Kivy users support
👍👍👍👍👍

Degenerate Tech

unread,
Sep 15, 2020, 9:53:31 AM9/15/20
to Kivy users support
Reply all
Reply to author
Forward
0 new messages