A
A
Alexey Guest0072017-08-13 20:10:01
linux
Alexey Guest007, 2017-08-13 20:10:01

How to set python for androi-for-python?

Linux, Kivy, trying the first helloworld.
In order not to dirty the system python with experiments, I assembled a separate environment in Pyenv. This is not just a virtualenv, but a separate compiled interpreter. Packages, dependencies - everything is respected. But.
When running `buildozer android debug` a problem with uninstalled packages comes up:

# Compile platform
# Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=newone --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/guest007/tmp/Projects/Kivy/.buildozer/android/platform/build'
# Cwd /home/guest007/tmp/Projects/Kivy/.buildozer/android/platform/python-for-android-master
ERROR: The appdirs Python module could not be found, please install it.
ERROR: The sh Python module could not be found, please install version 1.10 or higher
python-for-android is exiting due to the errors above.
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=newone --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/guest007/tmp/Projects/Kivy/.buildozer/android/platform/build

And here you can see that the python-for-android toolchain is trying to use the system python (/usr/bin/python)
How to specify a specific python interpreter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question