IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Déploiement/Installation Python Discussion :

[buildozer] No main.py(o) found in your app directory.


Sujet :

Déploiement/Installation Python

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre Expert
    Avatar de MPython Alaplancha
    Homme Profil pro
    Paysan à 3 francs six sous
    Inscrit en
    Juin 2018
    Messages
    923
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pyrénées Orientales (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Paysan à 3 francs six sous
    Secteur : Agroalimentaire - Agriculture

    Informations forums :
    Inscription : Juin 2018
    Messages : 923
    Billets dans le blog
    8
    Par défaut [buildozer] No main.py(o) found in your app directory.
    Bonjour,
    J'essaie de construire un fichier APK depuis un code kivy à l'aide de buildozer.
    Dans le répertoire, où figure le fichier main.py (l'appli kivy) j'ai initialisé buildozer, puis buildozer -v android debug comme lu dans sa documentation.
    Le code est exécuté dans un environnement virtuel (venv) qui a pour version python 3.10

    Cependant j'ai ce BUILD FAILURE que je ne comprends pas, mon main.py étant me semble t'il au bon endroit (c'est à dire là où j'ai exécuté buildozer __init__, puis buildozer -v android debug)
    Qu'en est il?
    Merci


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    [INFO]:    -> directory context /home/moi/.venv/kivy/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp
    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: ['/home/moi/.venv/kivy/bin/python3.10', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'myapp', '--name', 'My Application', '--version', '0.1', '--package', 'org.test.myapp', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/moi/.venv/kivy/.buildozer/android/app', '--android-entrypoint', 'org.kivy.android.PythonActivity', '--android-apptheme', '@android:style/Theme.NoTitleBar', '--orientation', 'portrait', '--window', '--copy-libs', '--arch', 'arm64-v8a', '--arch', 'armeabi-v7a', '--color=always', '--storage-dir=/home/moi/.venv/kivy/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
    # ENVIRONMENT:
    #     SHELL = '/bin/bash'
    #     SESSION_MANAGER = 'local/moi-ThinkPad-T470-W10DG:@/tmp/.ICE-unix/945,unix/moi-ThinkPad-T470-W10DG:/tmp/.ICE-unix/945'
    #     WINDOWID = '58720262'
    #     QT_ACCESSIBILITY = '1'
    #     COLORTERM = 'truecolor'
    #     XDG_CONFIG_DIRS = '/etc/xdg/xdg-mate:/etc/xdg'
    #     XDG_SESSION_PATH = '/org/freedesktop/DisplayManager/Session0'
    #     LANGUAGE = 'fr_FR'
    #     LESS_TERMCAP_se = '\x1b[0m'
    #     LESS_TERMCAP_so = '\x1b[1;44;33m'
    #     SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
    #     DESKTOP_SESSION = 'mate'
    #     SSH_AGENT_PID = '1052'
    #     GTK_MODULES = 'gail:atk-bridge'
    #     XDG_SEAT = 'seat0'
    #     MATE_DESKTOP_SESSION_ID = 'this-is-deprecated'
    #     PWD = '/home/moi/.venv/kivy'
    #     GSETTINGS_SCHEMA_DIR = '/home/moi/data'
    #     LOGNAME = 'moi'
    #     XDG_SESSION_DESKTOP = 'mate'
    #     QT_QPA_PLATFORMTHEME = 'gtk2'
    #     XDG_SESSION_TYPE = 'x11'
    #     GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'
    #     XAUTHORITY = '/home/moi/.Xauthority'
    #     XDG_GREETER_DATA_DIR = '/var/lib/lightdm-data/moi'
    #     GDM_LANG = 'fr_FR'
    #     HOME = '/home/moi'
    #     LANG = 'fr_FR.UTF-8'
    #     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:'
    #     XDG_CURRENT_DESKTOP = 'MATE'
    #     VIRTUAL_ENV = '/home/moi/.venv/kivy'
    #     VTE_VERSION = '6003'
    #     XDG_SEAT_PATH = '/org/freedesktop/DisplayManager/Seat0'
    #     LESSCLOSE = '/usr/bin/lesspipe %s %s'
    #     XDG_SESSION_CLASS = 'user'
    #     TERM = 'xterm-256color'
    #     LESS_TERMCAP_mb = '\x1b[1;31m'
    #     LESS_TERMCAP_me = '\x1b[0m'
    #     LESS_TERMCAP_md = '\x1b[1;38;5;74m'
    #     GTK_OVERLAY_SCROLLING = '0'
    #     LESSOPEN = '| /usr/bin/lesspipe %s'
    #     USER = 'moi'
    #     DISPLAY = ':0'
    #     LESS_TERMCAP_ue = '\x1b[0m'
    #     SHLVL = '1'
    #     LESS_TERMCAP_us = '\x1b[1;32m'
    #     XDG_VTNR = '7'
    #     UBUNTU_MENUPROXY = '1'
    #     XDG_SESSION_ID = 'c1'
    #     VIRTUAL_ENV_PROMPT = '(kivy) '
    #     XDG_RUNTIME_DIR = '/run/user/1000'
    #     COMPIZ_CONFIG_PROFILE = 'mate'
    #     PS1 = "(kivy) \\[\\e[01;32m\\]\\w jt'écoute :\\[\\e[0m\\]"
    #     QT_AUTO_SCREEN_SCALE_FACTOR = '0'
    #     XDG_DATA_DIRS = '/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop'
    #     PATH = '/home/moi/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/moi/.venv/kivy/bin:/home/moi/.poetry/bin:/home/moi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:~/.local/bin'
    #     GDMSESSION = 'mate'
    #     DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'
    #     QT_SCALE_FACTOR = '1'
    #     OLDPWD = '/home/moi/.venv'
    #     _ = '/home/moi/.venv/kivy/bin/buildozer'
    #     PACKAGES_PATH = '/home/moi/.buildozer/android/packages'
    #     ANDROIDSDK = '/home/moi/.buildozer/android/platform/android-sdk'
    #     ANDROIDNDK = '/home/moi/.buildozer/android/platform/android-ndk-r23b'
    #     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

  2. #2
    Membre Expert
    Avatar de MPython Alaplancha
    Homme Profil pro
    Paysan à 3 francs six sous
    Inscrit en
    Juin 2018
    Messages
    923
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pyrénées Orientales (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Paysan à 3 francs six sous
    Secteur : Agroalimentaire - Agriculture

    Informations forums :
    Inscription : Juin 2018
    Messages : 923
    Billets dans le blog
    8
    Par défaut
    Bonjour,
    J'ai recommencé le processus plusieurs fois, j'ai rencontré d'autres erreurs que j'ai résolu grâce au net. Au final j'ai fini par obtenir mon apk...
    J'suis content

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 0
    Dernier message: 08/07/2016, 13h51
  2. Réponses: 1
    Dernier message: 22/04/2012, 13h08
  3. Réponses: 2
    Dernier message: 29/11/2010, 12h17

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo