how to fix that problem

已查看 108 次
跳至第一个未读帖子

Brahim Allafouza

未读,
2022年5月11日 03:42:122022/5/11
收件人 Kivy users support

brahim@Brahim-PC:/mnt/c/Users/HP/Documents/testapp$ 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.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 /home/brahim/.local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-13-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-13-openjdk-amd64/bin/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/python-for-android
* master 227a7658 [origin/master] Merge pull request #2561 from misl6/release-2022.03.13
# Run '/usr/bin/python3 -m pip install -q --user \'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 /home/brahim/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/brahim/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 19c
# Android NDK found at /home/brahim/.buildozer/android/platform/android-ndk-r19c
# Read available permissions from api-versions.xml
# Run '/usr/bin/python3 -m pythonforandroid.toolchain aab -h --color=always --storage-dir="/mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a" --ndk-api=21 --ignore-setup-py --debug'
# Cwd /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/python-for-android
# Check application requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=main.py --bootstrap=sdl2 --requirements=python3,kivy --arch arm64-v8a --arch armeabi-v7a --copy-libs --color=always --storage-dir="/mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a" --ndk-api=21 --ignore-setup-py --debug'
# Cwd /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/python-for-android
[INFO]:    Will compile for the following archs: arm64-v8a, 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: /home/brahim/.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]:    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]:         main.py: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (arm64-v8a, armeabi-v7a)
[INFO]:    main.py has compatible recipes, using this one
# Build the application #4
# Copy application source from /mnt/c/Users/HP/Documents/testapp/C:\Users\HP\Documents\testapp\main.py
# Package the application
# project.properties updated
# Gradle project detected, copy files /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/main.py/src/main/java
# Run '/usr/bin/python3 -m pythonforandroid.toolchain apk --bootstrap sdl2 --dist_name main.py --name Calcul4 --version 0.1 --package org.test.main.py --minsdk 21 --ndk-api 21 --private /mnt/c/Users/HP/Documents/testapp/.buildozer/android/app --android-entrypoint org.kivy.android.PythonActivity --android-apptheme @android:style/Theme.NoTitleBar --icon /mnt/c/Users/HP/Documents/testapp/C:\\Users\\HP\\Documents\\testapp\\icon.png --orientation portrait --window --copy-libs --arch arm64-v8a --arch armeabi-v7a --color=always --storage-dir="/mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a" --ndk-api=21 --ignore-setup-py --debug'
# Cwd /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/python-for-android
[INFO]:    Will compile for the following archs: arm64-v8a, 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: /home/brahim/.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]:    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]:         main.py: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (arm64-v8a, armeabi-v7a)
[INFO]:    main.py has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         main.py: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (arm64-v8a, armeabi-v7a)
[INFO]:    main.py has compatible recipes, using this one
[INFO]:    -> directory context /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2
[INFO]:    <- directory context /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/python-for-android
[INFO]:    -> directory context /mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/main.py
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
BUILD FAILURE: No main.py(o) found in your app directory. This
file must exist to act as the entry point for you app. If your app is
started by a file with a different name, rename it to main.py or add a
main.py that loads it.
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain apk --bootstrap sdl2 --dist_name main.py --name Calcul4 --version 0.1 --package org.test.main.py --minsdk 21 --ndk-api 21 --private /mnt/c/Users/HP/Documents/testapp/.buildozer/android/app --android-entrypoint org.kivy.android.PythonActivity --android-apptheme @android:style/Theme.NoTitleBar --icon /mnt/c/Users/HP/Documents/testapp/C:\Users\HP\Documents\testapp\icon.png --orientation portrait --window --copy-libs --arch arm64-v8a --arch armeabi-v7a --color=always --storage-dir="/mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a" --ndk-api=21 --ignore-setup-py --debug
# ENVIRONMENT:
#     SHELL = '/bin/bash'
#     WSL_DISTRO_NAME = 'Ubuntu'
#     NAME = 'Brahim-PC'
#     PWD = '/mnt/c/Users/HP/Documents/testapp'
#     LOGNAME = 'brahim'
#     HOME = '/home/brahim'
#     LANG = 'C.UTF-8'
#     WSL_INTEROP = '/run/WSL/4878_interop'
#     LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
#     WAYLAND_DISPLAY = 'wayland-0'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     TERM = 'xterm-256color'
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     USER = 'brahim'
#     DISPLAY = ':0'
#     SHLVL = '1'
#     XDG_RUNTIME_DIR = '/mnt/wslg/runtime-dir'
#     WSLENV = ''
#     XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'
#     PATH = '/home/brahim/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/bin:/home/brahim/.local/bin:/user/'
#     HOSTTYPE = 'x86_64'
#     PULSE_SERVER = '/mnt/wslg/PulseServer'
#     _ = '/home/brahim/.local/bin/buildozer'
#     PACKAGES_PATH = '/home/brahim/.buildozer/android/packages'
#     ANDROIDSDK = '/home/brahim/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/brahim/.buildozer/android/platform/android-ndk-r19c'
#     ANDROIDAPI = '27'
#     ANDROIDMINAPI = '21'
#
# 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

Robert

未读,
2022年5月11日 13:27:322022/5/11
收件人 Kivy users support
> BUILD FAILURE: No main.py(o) found in your app directory. This
> file must exist to act as the entry point for you app. If your app is
> started by a file with a different name, rename it to main.py or add a
> main.py that loads it.

Brahim Allafouza

未读,
2022年5月12日 08:03:222022/5/12
收件人 Kivy users support
how to fix?

Guilherme Soares Lima

未读,
2022年5月12日 09:11:532022/5/12
收件人 Kivy users support
# Copy application source from /mnt/c/Users/HP/Documents/testapp/C:\Users\HP\Documents\testapp\main.py

Are you still using windows?
 
BUILD FAILURE: No main.py(o) found in your app directory. This
file must exist to act as the entry point for you app. If your app is
started by a file with a different name, rename it to main.py or add a
main.py that loads it.
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain apk --bootstrap sdl2 --dist_name main.py --name Calcul4 --version 0.1 --package org.test.main.py --minsdk 21 --ndk-api 21 --private /mnt/c/Users/HP/Documents/testapp/.buildozer/android/app --android-entrypoint org.kivy.android.PythonActivity --android-apptheme @android:style/Theme.NoTitleBar --icon /mnt/c/Users/HP/Documents/testapp/C:\Users\HP\Documents\testapp\icon.png --orientation portrait --window --copy-libs --arch arm64-v8a --arch armeabi-v7a --color=always --storage-dir="/mnt/c/Users/HP/Documents/testapp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a" --ndk-api=21 --ignore-setup-py --debug

 It says: "didn ´t find main.py".

So that can be your entry file is not main.py or the source directory is not on buildozer.spec file. See this:

--------------- File: buildozer.spec -----------
...
source.dir = src
...

------------------------------------------------------------
Hope It helps.

Guilherme Soares Lima

未读,
2022年5月12日 09:13:372022/5/12
收件人 Kivy users support
If the entry file is not main.py, you can just rename it and be happy.
回复全部
回复作者
转发
0 个新帖子