socket.error: [Errno 104] Connection reset by peer when building an application

367 views
Skip to first unread message

nadko28

unread,
Nov 23, 2016, 3:00:57 PM11/23/16
to Kivy users support
Hello,

I just set up the Buildozer VM and followed the instructions to build the necessary dependencies (http://buildozer.readthedocs.io/en/latest/installation.html).

I only have the very basic Hello World example, no other code. The buildozer.spec file is present and I modified it as suggested.

Now when I run "buildozer -v android debug" (as described here: http://buildozer.readthedocs.io/en/latest/quickstart.html), I get the following stacktrace:

# 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.17.5 (amd64).
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-7-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool
# Install platform
# Android ANT is missing, downloading
# Downloading http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz
Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 9, in <module>
    load_entry_point('buildozer==0.32', '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 1020, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 90, in run_commands
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/target.py", line 100, in cmd_debug
    self.buildozer.prepare_for_build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 174, in prepare_for_build
    self.target.install_platform()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 497, in install_platform
    self._install_apache_ant()
  File "/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py", line 229, in _install_apache_ant
    cwd=self.buildozer.global_platform_dir)
  File "/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py", line 665, in download
    urlretrieve(url, filename, report_hook)
  File "/usr/lib/python2.7/urllib.py", line 268, in retrieve
    block = fp.read(bs)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
socket.error: [Errno 104] Connection reset by peer



Same happens with android_new.

I really don't know what causes this error. In the past I had Buildozer up and running with no problem. But now on my new Macbook it just doesn't seem to work.

Thanks a lot for your help!

ZenCODE

unread,
Nov 23, 2016, 4:05:15 PM11/23/16
to Kivy users support
This looks like more on a connection issue that a tool issue. Can you try on another network? Are you having any connection issues browsing or downloading large files? Behind a firewall?

nadko28

unread,
Nov 24, 2016, 5:28:36 AM11/24/16
to Kivy users support
I have no other issues whatsoever. Browsing and downloading large files works just fine. Another network does not solve the issue, unfortunately.

ZenCODE

unread,
Nov 24, 2016, 5:58:37 AM11/24/16
to Kivy users support
Try downloading this file manually (http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz) and placing it in the ".cache" folder in the 'kivy-ios' folder. Does your build get further?

Prince Yadav

unread,
Aug 20, 2017, 11:33:42 PM8/20/17
to Kivy users support
sir i m facing the same issue.have u got any solution for the same,if so please help me......

Reply all
Reply to author
Forward
0 new messages