Python3 buildozer error

75 views
Skip to first unread message

Sanjoy Ghosh

unread,
Apr 14, 2018, 8:25:33 AM4/14/18
to Kivy users support
[ERROR]:   python-for-android cannot continue; aborting
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3crystax,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/biki/Desktop/mqtt/.buildozer/android/platform/build
#
# 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

i get this error when i run "buildozer android debug deploy run".....

Need help......pls

ZenCODE

unread,
Apr 19, 2018, 3:00:13 PM4/19/18
to Kivy users support
Please set the log_level to 2 and post the full log. 

Sanjoy Ghosh

unread,
Apr 20, 2018, 1:01:02 AM4/20/18
to kivy-...@googlegroups.com
i fixed this ....thank you Zen...

On Fri, Apr 20, 2018 at 12:30 AM, ZenCODE <zenkey....@gmail.com> wrote:
Please set the log_level to 2 and post the full log. 

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

JYUN-FONG LIN

unread,
Apr 20, 2018, 1:39:11 AM4/20/18
to kivy-...@googlegroups.com
lin@LIN:~/Desktop$ p4a apk --private /home/lin/Desktop/ --package=org.example.myapp --name "Myapplication" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy --arch=arm64-v8a --orientation portait --android_api=22 --icon /home/lin/Android/icon.png --no-compile-pyo --sdk_dir /home/lin/Android/Sdk --ndk_dir /home/lin/Android/android-ndk-r16b --ndk_version r16b --debug
[INFO]:    Will compile for the following archs: arm64-v8a
[INFO]:    Getting Android API version from user argument
[INFO]:    Available Android APIs are (15, 19, 22, 23, 24, 25, 26, 27)
[INFO]:    Requested API target 22 is available, continuing.
[INFO]:    Getting NDK dir from from user argument
[INFO]:    Got NDK version from from user argument
[INFO]:    Using Google NDK r16b
[INFO]:    Found virtualenv at /usr/local/bin/virtualenv
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:    unnamed_dist_1: includes recipes (hostpython2, sdl2_image, sdl2_mixer, sdl2_ttf, python2, sdl2, six, pyjnius, kivy), built for archs (arm64-v8a)
[INFO]:    unnamed_dist_1 has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:    unnamed_dist_1: includes recipes (hostpython2, sdl2_image, sdl2_mixer, sdl2_ttf, python2, sdl2, six, pyjnius, kivy), built for archs (arm64-v8a)
[INFO]:    unnamed_dist_1 has compatible recipes, using this one
[INFO]:    -> directory context /home/lin/.local/share/python-for-android/dists/unnamed_dist_1
[INFO]:    Selecting java build tool:
[INFO]:    Detected highest available build tools version to be 27.0.3
[INFO]:        Building with ant, as no gradle executable detected
[DEBUG]:   -> running ant debug
[DEBUG]:    Buildfile: /home/lin/.local/share/python-for-android/dists/unnamed_dist_1/build.xml
[DEBUG]:   
[DEBUG]:    BUILD FAILED
[DEBUG]:    Target "debug" does not exist in the project "Myapplication-0.1".
[DEBUG]:   
[DEBUG]:    Total time: 1 second
Exception in thread background thread for pid 4118:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2170, in background_thread
    handle_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1929, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python2.7/dist-packages/sh.py", line 672, in handle_command_exit_code
    raise exc
ErrorReturnCode_1: 

  RAN: /home/lin/Desktop/apache-ant-1.10.3/bin/ant debug

  STDOUT:
Buildfile: /home/lin/.local/share/python-for-android/dists/unnamed_dist_1/build.xml

BUILD FAILED
Target "debug" does not exist in the project "Myapplication-0.1". 

Total time: 1 second


  STDERR:


[INFO]:    STDOUT:
Buildfile: /home/lin/.local/share/python-for-android/dists/unnamed_dist_1/build.xml
BUILD FAILED
Target "debug" does not exist in the project "Myapplication-0.1".
Total time: 1 second
[INFO]:    STDERR:
[INFO]:    COMMAND:
cd /home/lin/.local/share/python-for-android/dists/unnamed_dist_1 && /home/lin/Desktop/apache-ant-1.10.3/bin/ant debug

[WARNING]: ERROR: /home/lin/Desktop/apache-ant-1.10.3/bin/ant failed!


------------------------------------------------------------------------------------------------------------------------------------------------------------------------


i get this error when i run "
P4a apk --private /home/lin/Desktop/ --package=org.example.myapp --name "Myapplication" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy --arch=arm64-v8a --orientation portait --android_api=22 --icon /home/lin/Android/icon.png --no-compile-pyo --sdk_dir /home/lin/Android/Sdk --ndk_dir /home/lin/Android/ Android-ndk-r16b --ndk_version r16b --debug" .

Please
Need help.

2018-04-20 3:00 GMT+08:00 ZenCODE <zenkey....@gmail.com>:
Please set the log_level to 2 and post the full log. 

--

Alexander Taylor

unread,
Apr 21, 2018, 8:11:54 AM4/21/18
to Kivy users support
I haven't seen this kind of error before. Could you clean the build (`p4a clean dists builds`) and run it again, then post the full log if it still doesn't work?

JYUN-FONG LIN

unread,
Apr 22, 2018, 10:22:40 PM4/22/18
to kivy-...@googlegroups.com
Yes, the same failure

Sanjoy Ghosh

unread,
Apr 23, 2018, 3:34:38 AM4/23/18
to kivy-...@googlegroups.com
are u using kivy virtual machine ??
if yes, then
reinstall whole os again and try it

JYUN-FONG LIN

unread,
Apr 24, 2018, 3:38:28 AM4/24/18
to kivy-...@googlegroups.com
Yes, use the VM to compile

Clear first:
  Buildozer android clean
Edit again:
  Buildozer android debug deploy run

dee kon

unread,
Apr 27, 2018, 2:18:10 PM4/27/18
to Kivy users support
How did you fix it?
i've been facing the same error


On Friday, April 20, 2018 at 10:31:02 AM UTC+5:30, Sanjoy Ghosh wrote:
i fixed this ....thank you Zen...
On Fri, Apr 20, 2018 at 12:30 AM, ZenCODE <zenkey....@gmail.com> wrote:
Please set the log_level to 2 and post the full log. 

--
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.

JYUN-FONG LIN

unread,
Apr 28, 2018, 8:09:55 AM4/28/18
to kivy-...@googlegroups.com
我使用buildozer而不是使用python-for-android。
使用python-for-android會出現錯誤:“Buildfile:/home/lin/.local/share/python-for-android/dists/unnamed_dist_1/build.xml”

如果你知道如何解決它,請分享它


To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+unsubscribe@googlegroups.com.

sagi...@gmail.com

unread,
Dec 15, 2018, 2:22:56 AM12/15/18
to Kivy users support
how did you overcome this error bro? can you explain it bro?


On Friday, April 20, 2018 at 10:31:02 AM UTC+5:30, Sanjoy Ghosh wrote:
i fixed this ....thank you Zen...
On Fri, Apr 20, 2018 at 12:30 AM, ZenCODE <zenkey....@gmail.com> wrote:
Please set the log_level to 2 and post the full log. 

--
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.
Reply all
Reply to author
Forward
0 new messages