kivy / buildozer

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

android debug process stuck at downloading sdl2 #1273

Closed rushbhpatil closed 2 years ago

rushbhpatil commented 3 years ago
(my_env) root@DESKTOP-33C0KHU:~/environments/Stoploss# sudo buildozer -v android_new  debug
sudo: buildozer: command not found
(my_env) root@DESKTOP-33C0KHU:~/environments/Stoploss# buildozer -v android_new  debug
# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y
Unknown command/target android_new
(my_env) root@DESKTOP-33C0KHU:~/environments/Stoploss# buildozer -v android debug
# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y
# 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.19.7 (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 /root/environments/my_env/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /root/environments/Stoploss/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /root/environments/Stoploss/.buildozer/android/platform/python-for-android
* master 5a94d074 [origin/master] Merge pull request #2244 from Chronolife-team/native_services_upstream
# Run '/root/environments/my_env/bin/python3 -m pip install -q  \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\''
# Cwd None
# Apache ANT found at /root/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /root/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 19c
# Android NDK found at /root/.buildozer/android/platform/android-ndk-r19c
# Read available permissions from api-versions.xml
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/root/environments/my_env/bin/python3 -m pythonforandroid.toolchain create --dist_name=Stoploss Check --bootstrap=sdl2 --requirements=python3,kivy,kivymd,requests,csv,png,jpg,jpeg,gif --arch armeabi-v7a --copy-libs --color=always --storage-dir="/root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21'
# Cwd /root/environments/Stoploss/.buildozer/android/platform/python-for-android
/root/environments/Stoploss/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:84: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 27
[INFO]:    Available Android APIs are (27)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /root/.buildozer/android/platform/android-ndk-r19c
[INFO]:    Found NDK version 19c
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[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: ['csv', 'gif', 'hostpython3', 'jpeg', 'jpg', 'kivymd', 'libffi', 'openssl', 'png', 'requests', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name Stoploss and requirements (python3, kivy, kivymd, requests, csv, png, jpg, jpeg, gif)
[INFO]:    Dist contains the following requirements as recipes: ['hostpython3', 'jpeg', 'libffi', 'openssl', 'png', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    Dist will also contain modules (csv, gif, requests, jpg, certifi, kivymd) installed from pip
[INFO]:    Dist will be build in mode debug
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Recipe build order is ['hostpython3', 'jpeg', 'libffi', 'openssl', 'png', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    The requirements (certifi, csv, gif, jpg, kivymd, requests) were not found as recipes, they will be installed with pip.
[INFO]:    # Downloading recipes
[INFO]:    Downloading hostpython3
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/hostpython3
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/hostpython3
[INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    hostpython3 download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading jpeg
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/jpeg
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/jpeg
[INFO]:    -> running basename https://github.com/libjpeg-turbo/libjpeg-turbo/archive/2.0.1.tar.gz
[INFO]:    jpeg download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading libffi
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/libffi
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/libffi
[INFO]:    -> running basename https://github.com/libffi/libffi/archive/8fa8837.tar.gz
[INFO]:    libffi download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading openssl
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/openssl
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/openssl
[INFO]:    -> running basename https://www.openssl.org/source/openssl-1.1.1f.tar.gz
[INFO]:    openssl download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading png
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/png
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/png
[INFO]:    -> running basename https://github.com/glennrp/libpng/archive/v1.6.37.zip
[INFO]:    png download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_image
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    sdl2_image download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_mixer
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]:    sdl2_mixer download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_ttf
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    sdl2_ttf download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sqlite3
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sqlite3
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sqlite3
[INFO]:    -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    sqlite3 download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading python3
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/python3
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/python3
[INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    python3 download already cached, skipping
[INFO]:    <- directory context /root/environments/Stoploss/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2
[INFO]:    -> directory context /root/environments/Stoploss/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> running rm -f .mark-SDL2-2.0.9.tar.gz
[INFO]:    Downloading sdl2 from https://www.libsdl.org/release/SDL2-2.0.9.tar.gz

what should I do now? it is stuck at download.. the file of sdl2 is only 11mb... I tried many times.. but every time it stucks on same step

RobertFlatt commented 3 years ago

Buildozer is running as root! This is not recommended, and may lead to problems later. Are you sure you want to continue [y/n]? y

what should I do now?

Not be surprised!

Follow the instructions. Clean up the mess, by deleting ~/.buildozer and project/.buildozer There may be other residual issues

Usage question should be directed to the user group https://groups.google.com/g/kivy-users This site is for development issues, please close this issue.

rushbhpatil commented 3 years ago

which commands should I use? to remove those files or folder?where can I find those file?

I am very new to buildozer and linux..this is my first time...

On Tue, 5 Jan, 2021, 11:32 RobertF, notifications@github.com wrote:

Buildozer is running as root! This is not recommended, and may lead to problems later. Are you sure you want to continue [y/n]? y

what should I do now?

Not be surprised!

Follow the instructions. Clean up the mess, by deleting ~/.buildozer and project/.buildozer There may be other residual issues

Usage question should be directed to the user group https://groups.google.com/g/kivy-users This site is for development issues, please close this issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kivy/buildozer/issues/1273#issuecomment-754418961, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAV2NQEBUPVO6DNDEKVC6DSYKTOXANCNFSM4VUJGIYQ .

cyear commented 3 years ago

我应该使用哪些命令?删除那些文件或文件夹?在哪里可以找到那些文件?我对buildozer和linux非常陌生。.这是我的第一次。 On Tue, 5 Jan, 2021, 11:32 RobertF, @.***> wrote: Buildozer is running as root! This is not recommended, and may lead to problems later. Are you sure you want to continue [y/n]? y what should I do now? Not be surprised! Follow the instructions. Clean up the mess, by deleting ~/.buildozer and project/.buildozer There may be other residual issues Usage question should be directed to the user group https://groups.google.com/g/kivy-users This site is for development issues, please close this issue. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#1273 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAV2NQEBUPVO6DNDEKVC6DSYKTOXANCNFSM4VUJGIYQ .

You can delete. Build dozer file, or re-execute the command, wait patiently, and download complete.

Delete the folder using rm -rf [file name]

github-actions[bot] commented 2 years ago

👋 @rushbhpatil, 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.