p4a -- Error during build

42 views
Skip to first unread message

Peter Chuzie

unread,
Aug 27, 2019, 11:37:29 AM8/27/19
to Python For Android
Hello,

When I run "buildozer -v android debug", I continue to produce the following error.

"[ERROR]:   Build failed: python-for-android no longer supports running under Python 2. Either upgrade to Python 3.4 or higher (recommended), or revert to python-for-android 2019.07.08. Note that you *can* still target Python 2 on Android by including python2 in your requirements."

I have both python2 and python3 on my computer but cant figure out why it is not recognizing python3. Or if this is even the issue that is throwing the error?


The requirements in my buildozer.specs file are as follow:
    - requirements = python2, python3, kivy, sql, bcrypt.



Any guidance would be greatly appreciated!


Alexander Taylor

unread,
Aug 27, 2019, 3:50:08 PM8/27/19
to Python For Android
It doesn't matter that you have python3 installed, the problem is that you are running python-for-android with python2. You probably installed it with python2 in the first place. Uninstall it, and install again with python3 (something like pip2 uninstall python-for-android; pip3 install python-for-android).
Reply all
Reply to author
Forward
0 new messages