kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.74k stars 499 forks source link

Command failed: ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz'] #1501

Closed RealRageDontQuit closed 2 years ago

RealRageDontQuit commented 2 years ago

Versions

Description

After executing buildozer android debug deploy run the process stops at:

# Android ANT is missing, downloading
# Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz
# Run ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz']
# Cwd /home/wizhacker/.buildozer/android/platform/apache-ant-1.9.4
/usr/bin/gzip: 1: ELF: not found
/usr/bin/gzip: 3: : not found
/usr/bin/gzip: 4: Syntax error: "(" unexpected

# Command failed: ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz']

buildozer.spec

Command:

`buildozer android debug deploy run`

Spec file: empty

Logs

# Android ANT is missing, downloading
# Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz
# Run ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz']
# Cwd /home/wizhacker/.buildozer/android/platform/apache-ant-1.9.4
/usr/bin/gzip: 1: ELF: not found
/usr/bin/gzip: 3: : not found
/usr/bin/gzip: 4: Syntax error: "(" unexpected

# Command failed: ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz']
RealRageDontQuit commented 2 years ago

I was missing p4a and its dependencies:

https://python-for-android.readthedocs.io/en/latest/quickstart/

running:

sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install -y build-essential ccache git zlib1g-dev python3 python3-dev libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-8-jdk unzip ant ccache autoconf libtool libssl-dev solved my problem

github-actions[bot] commented 2 years ago

👋 @RealRageDontQuit, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. Let us know if this comment was made in error, and we'll be happy to reopen the issue.