buildozer problem

287 views
Skip to first unread message

xinming

unread,
Sep 24, 2017, 5:55:05 AM9/24/17
to kivy-...@googlegroups.com
I have installed buildozer on my computer (follow the https://buildozer.readthedocs.io/en/latest/installation.html), and I want to build an app, well, it failed.
It is my first run, the messages

xmzhang@xmzhang-ThinkPad-Edge-E431:~/Documents$ buildozer -v android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Read available permissions from api-versions.xml
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.18.4 (i386).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-8-openjdk-i386/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-8-openjdk-i386/jre/bin/keytool
# Install platform
# Run 'pip install -q --user "appdirs" "colorama>=0.3.3" "sh>=1.10,<1.12.5" "jinja2" "six"'
# Cwd None
# Apache ANT found at /home/xmzhang/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/xmzhang/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/xmzhang/.buildozer/android/platform/android-ndk-r9c
# Run '/home/xmzhang/.buildozer/android/platform/android-sdk-20/tools/android list sdk -u -e'
# Cwd /home/xmzhang/.buildozer/android/platform
Refresh Sources:
  Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml

it stops, I also opened the https://dl-ssl.google.com/android/repository/addons_list-2.xml in my firefox, the contents

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<sdk:sdk-addons-list><!--Generated on 2017-09-19 14:19:59.437153 with ADRT.-->
<sdk:addon-site><sdk:name>Google Inc.</sdk:name><sdk:url>addon.xml</sdk:url></sdk:addon-site><sdk:addon-site><sdk:name>Glass Development Kit, Google Inc.</sdk:name><sdk:url>glass/addon.xml</sdk:url></sdk:addon-site><sdk:addon-site><sdk:name>Intel HAXM</sdk:name><sdk:url>extras/intel/addon.xml</sdk:url></sdk:addon-site><sdk:sys-img-site><sdk:name>Android System Images</sdk:name><sdk:url>sys-img/android/sys-img.xml</sdk:url></sdk:sys-img-site><sdk:sys-img-site><sdk:name>Android Wear System Images</sdk:name><sdk:url>sys-img/android-wear/sys-img.xml</sdk:url></sdk:sys-img-site><sdk:sys-img-site><sdk:name>Android TV System Images</sdk:name><sdk:url>sys-img/android-tv/sys-img.xml</sdk:url></sdk:sys-img-site><sdk:sys-img-site><sdk:name>Google API add-on System Images</sdk:name><sdk:url>sys-img/google_apis/sys-img.xml</sdk:url></sdk:sys-img-site><sdk:sys-img-site><sdk:name>Google API with Playstore System Images</sdk:name><sdk:url>sys-img/google_apis_playstore/sys-img.xml</sdk:url></sdk:sys-img-site></sdk:sdk-addons-list>

I have to use ctrl+c to stop it, the error message is

^CTraceback (most recent call last):
  File "/usr/local/bin/buildozer", line 9, in <module>
    load_entry_point('buildozer==0.33', 'console_scripts', 'buildozer')()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 1058, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 91, in run_commands
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 101, in cmd_debug
    self.buildozer.prepare_for_build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 176, in prepare_for_build
    self.target.install_platform()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 470, in install_platform
    self._install_android_packages()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 407, in _install_android_packages
    packages = self._android_list_sdk()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 330, in _android_list_sdk
    get_stdout=True)[0]
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 303, in cmd
    readx = select.select([fd_stdout, fd_stderr], [], [])[0]
KeyboardInterrupt

I really know nothing about android, ndk, sdk,etc. I just want to build my android app, so, how to get it work. or how jump such step if it is not nessary.

Thank you in advance :)



Alexander Taylor

unread,
Sep 25, 2017, 6:47:30 PM9/25/17
to Kivy users support
So, it just hangs at that download step if you don't interrupt it?

Simon

unread,
Sep 25, 2017, 8:48:27 PM9/25/17
to kivy-...@googlegroups.com
yeah, just hangs up, I found similar report issue https://github.com/kivy/buildozer/issues/198 

I thought just because our awesome country blocked the google cause the problem (I can use VPN before, now, can not). I think maybe set the proxy would work, but I do not know how to do it.

I will test it later when I back home, just let it hangs all night to see what happened.

EDIT:

It would hangs up

Sep 27, 2017 4:56:46 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect

INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Network is unreachable (connect failed)

Sep 27, 2017 4:56:46 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect

INFO: Retrying connect

Sep 27, 2017 5:05:30 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect

INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Network is unreachable (connect failed)

Sep 27, 2017 5:05:30 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect

INFO: Retrying connect

cpSep 27, 2017 5:14:14 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect

INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Network is unreachable (connect failed)

Sep 27, 2017 5:14:14 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect

INFO: Retrying connect


I am not sure my thought is right, I want to download the sdk myself manually, then put it in /.buildozer/android/platform/android-sdk-20/platforms/ , then comment out        

# self.info('Install platform')
# self.target.install_platform()

to check it works or not. but I really can not use vi, in fact I am new to linux, I even do not know how to modify the read-only file. I tried, but failed :( Maybe I should go back to my vm

Steven Lu

unread,
Apr 12, 2018, 2:18:17 AM4/12/18
to Kivy users support
Agree with you Simon, I get exactly same error with you, and in linux like Ubuntu you can use Gedit exactly same like notepad++ in windows, also many other text edit tools link HERE.
VPN I using is ShadowsocksR-4.6.1-win, VMWare Ubuntu 16.0.4 64 with set Network Proxy in net bridge and can access both host and VM to www.google.com.
What I'm trying to do now is download android studio linux to see if I'm luck.

solo moku

unread,
Oct 16, 2018, 12:44:16 AM10/16/18
to Kivy users support
I have the same problem, though I can access https://dl-ssl.google.com/android/repository/addons_list-2.xml on web browser...
Do you guys have any suggestions?

Thank you.
Reply all
Reply to author
Forward
0 new messages