question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error message about python2

See original GitHub issue

Trying to compile an apk using buildozer 0.39. I get a strange error:

# Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=XXXXXX --bootstrap=sdl2 --requirements=python2,kivy,sqlite3,requests,feedparser,html2bbcode --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/kivy/4Build/XXXXXX/.buildozer/android/platform/build" --ndk-api=21'
# Cwd /home/kivy/4Build/XXXXXX/.buildozer/android/platform/python-for-android
[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.

The command I use includes the python2 requirement, but python-for-android says its not…

  • Python: 2.7.15+
  • OS: Ubuntu 18.04 VM

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AndreMirascommented, Oct 13, 2019

There’re definitely things to improve in the process and also we need to document it

1reaction
noembryocommented, Oct 13, 2019

Hm, never used docker before… Maybe I’ll try it in the future (yet another thing to learn ;o) Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

8. Errors and Exceptions — Python 2.7.2 documentation
The last line of the error message indicates what happened. Exceptions come in different types, and the type is printed as part of...
Read more >
8. Errors and Exceptions — Python 3.11.1 documentation
The last line of the error message indicates what happened. Exceptions come in different types, and the type is printed as part of...
Read more >
Python not found exception due to node-sass and node-gyp
The error message means that it cannot locate your python executable or binary. In many cases, it's installed at c:\python27. if it's not ......
Read more >
Error Types in Python - TutorialsTeacher
The most common reason of an error in a Python program is when a certain statement is not in accordance with the prescribed...
Read more >
python 2.7 syntax errors in python3 code
I have some python3 code with "Extended Iterable Unpacking". e.g. calling a function like this: foo(*args). This was not allowed in python2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found