While building the app using make apk_debug I'm facing build errors.
Code and Logs
$ make apk_debug
python deploy.py apk debug
deploy.py:154: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
cfg = yaml.load(ymlfile)
make[1]: Entering directory '/home/vagrant/mi-dev/mobileinsight-mobile/diag_revealer/qcom/jni'
ndk-build
make[2]: Entering directory `/home/vagrant/mi-dev/mobileinsight-mobile/diag_revealer/qcom/jni'
[armeabi-v7a] Compile thumb : diag_revealer <= diag_revealer.c
[armeabi-v7a] Executable : diag_revealer
[armeabi-v7a] Install : diag_revealer => libs/armeabi-v7a/diag_revealer
make[2]: Leaving directory `/home/vagrant/mi-dev/mobileinsight-mobile/diag_revealer/qcom/jni'
cp ../libs/armeabi-v7a/diag_revealer .
rm -r ../obj/ ../libs/
cp ./diag_revealer ../../../app/data/
echo "diag_revealer has been copied to ../../../app/data/"
diag_revealer has been copied to ../../../app/data/
make[1]: Leaving directory '/home/vagrant/mi-dev/mobileinsight-mobile/diag_revealer/qcom/jni'
make[1]: Entering directory '/home/vagrant/mi-dev/mobileinsight-mobile/diag_revealer/mtk/jni'
ndk-build
make[2]: Entering directory `/home/vagrant/mi-dev/mobileinsight-mobile/diag_revealer/mtk/jni'
[armeabi-v7a] Compile thumb : diag_revealer_mtk <= diag_revealer_mtk.c
[armeabi-v7a] Executable : diag_revealer_mtk
[armeabi-v7a] Install : diag_revealer_mtk => libs/armeabi-v7a/diag_revealer_mtk
make[2]: Leaving directory `/home/vagrant/mi-dev/mobileinsight-mobile/diag_revealer/mtk/jni'
cp ../libs/armeabi-v7a/diag_revealer_mtk .
rm -r ../obj/ ../libs/
cp ./diag_revealer_mtk ../../../app/data/
echo "diag_revealer_mtk has been copied to ../../../app/data/"
diag_revealer_mtk has been copied to ../../../app/data/
make[1]: Leaving directory '/home/vagrant/mi-dev/mobileinsight-mobile/diag_revealer/mtk/jni'
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Getting Android API version from user argument
[INFO]: Available Android APIs are (19)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Getting NDK dir from from user argument
[INFO]: Got NDK version from from user argument
[INFO]: Using Google NDK r10e-rc4
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: Found the following toolchain versions: ['4.8', '4.9', 'clang3.5', 'clang3.6']
[INFO]: Picking the latest gcc toolchain, here 4.9
[INFO]: No existing dists meet the given requirements!
[INFO]: No dist exists that meets your requirements, so one will be built.
[INFO]: Found a single valid recipe set: []
[INFO]: Trying to find a bootstrap that matches the given recipes.
[INFO]: Found 7 acceptable bootstraps: ['pygame', 'sdl2', 'sdl2', 'service_only', 'service_only', 'webview', 'webview']
[INFO]: Using the first of these: pygame
[INFO]: Found a single valid recipe set: []
[INFO]: The selected bootstrap is pygame
[INFO]: # Creating dist with pygame bootstrap
[INFO]: Dist will have name mi4 and recipes ()
[INFO]: Dist will also contain modules () installed from pip
[INFO]: -> running cp -r /usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroi...(and 89 more)
[INFO]: -> directory context /home/vagrant/.python-for-android/build/bootstrap_builds/pygame
[INFO]: <- directory context /home/vagrant/mi-dev/mobileinsight-mobile
[INFO]: Recipe build order is []
[INFO]: # Downloading recipes
[INFO]: # Building all recipes for arch armeabi-v7a
[INFO]: # Unpacking recipes
[INFO]: # Prebuilding recipes
[INFO]: # Building recipes
[INFO]: # Biglinking object files
[INFO]: Collating object files from each recipe
[INFO]: There seem to be no libraries to biglink, skipping.
[INFO]: # Postbuilding recipes
[INFO]: # Installing pure Python modules
[INFO]: There are no Python modules to install, skipping
[INFO]: # Creating Android project from build and pygame bootstrap
[INFO]: Bootstrap running with arch armeabi-v7a
[INFO]: -> directory context /home/vagrant/.python-for-android/dists/mi4
[INFO]: Creating initial layout
[INFO]: Copying default files
[INFO]: -> running cp -a /home/vagrant/.python-for-android/build/bootstrap_builds/pygame/project.properties .
[INFO]: -> running cp -a /usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroi...(and 36 more)
[INFO]: -> running cp -a /usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroi...(and 36 more)
[INFO]: -> running cp -a /usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroi...(and 31 more)
[INFO]: -> running cp -a /usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroi...(and 37 more)
[INFO]: -> running cp -a /usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroi...(and 31 more)
[INFO]: -> running cp -a /usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroi...(and 41 more)
[INFO]: -> running cp -a /usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroi...(and 41 more)
[INFO]: Copying python distribution
Traceback (most recent call last):
File "/usr/local/bin/python-for-android", line 9, in <module>
load_entry_point('python-for-android==0.5.4', 'console_scripts', 'python-for-android')()
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroid/toolchain.py", line 916, in main
ToolchainCL()
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroid/toolchain.py", line 517, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroid/toolchain.py", line 148, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroid/toolchain.py", line 195, in build_dist_from_args
ctx.bootstrap.run_distribute()
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.5.4-py2.7.egg/pythonforandroid/bootstraps/pygame/__init__.py", line 48, in run_distribute
hostpython = sh.Command(self.ctx.hostpython)
AttributeError: 'Context' object has no attribute 'hostpython'
make_diag command was:
cd diag_revealer/qcom/jni; rm diag_revealer; make; cd ../../mtk/jni; rm diag_revealer_mtk; make;
build command was:
python-for-android apk --copy-libs --name=MobileInsight --dist-name=mi4 --storage-dir=/home/vagrant/.python-for-android --version=4.0.0 --private=/home/vagrant/mi-dev/mobileinsight-mobile/app --package=net.mobileinsight.app --icon=/home/vagrant/mi-dev/mobileinsight-mobile/resources/logo-icon.png --presplash=/home/vagrant/mi-dev/mobileinsight-mobile/resources/logo-preflash.jpeg --orientation=portrait --sdk-dir=/home/vagrant/android-sdk --android-api=19 --minsdk=14 --ndk-dir=/home/vagrant/android-ndk-r10e --ndk-version=r10e-rc4 --arch=armeabi-v7a --whitelist=/home/vagrant/mi-dev/mobileinsight-mobile/config/whitelist.txt --permission WRITE_EXTERNAL_STORAGE --permission READ_EXTERNAL_STORAGE --permission INTERNET --permission RECEIVE_BOOT_COMPLETED --permission ACCESS_WIFI_STATE --permission INSTALL_PACKAGES --permission ACCESS_NETWORK_STATE --permission ACCESS_FINE_LOCATION --permission ACCESS_COARSE_LOCATION
@moonsky219
I thought I was missing the hostpython2 package but it seems to be installed,
Versions
Description
While building the app using
make apk_debug
I'm facing build errors.Code and Logs
@moonsky219
I thought I was missing the hostpython2 package but it seems to be installed,
What am I missing here?
Pls, suggest a solution to this.
Regards.