question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUILD FAILURE: No main.py(o) found in your app directory.

See original GitHub issue

Versions

  • Python: 3.7.1
  • OS: ArchLinux
  • Kivy:1.10.1
  • Cython:0.29.1

Description

What am I doing wrong?? please help, I will be very grateful for any hint

Logs

[user@revenge kivy1]$ p4a apk --private main --name "Main4Kivy" --version 0.1 --bootstrap=sdl2 --requirements=kivy --arch=armeabi-v7a --package=org.example.main4 
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 28
[INFO]:    Available Android APIs are (28)
[INFO]:    Requested API target 28 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/user/Documents/sdk_and_ndk/android-ndk-r17c-linux-x86_64/android-ndk-r17c
[INFO]:    Got NDK version from $ANDROIDNDKVER: r17c
[INFO]:    Found Android API target in $NDKAPI
[INFO]:    Using Google NDK r17c
[INFO]:    Found virtualenv at /usr/bin/virtualenv
[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]:    Of the existing distributions, the following meet the given requirements:
[INFO]:    	unnamed_dist_1: min API 27, includes recipes (hostpython2, sdl2_image, sdl2_mixer, sdl2_ttf, python2, sdl2, six, pyjnius, kivy), built for archs (armeabi-v7a)
[INFO]:    unnamed_dist_1 has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:    	unnamed_dist_1: min API 27, includes recipes (hostpython2, sdl2_image, sdl2_mixer, sdl2_ttf, python2, sdl2, six, pyjnius, kivy), built for archs (armeabi-v7a)
[INFO]:    unnamed_dist_1 has compatible recipes, using this one
[INFO]:    -> directory context /home/user/.local/share/python-for-android/dists/unnamed_dist_1
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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
YPRAScommented, Jul 3, 2020

Change your main source code file name to main.py. It will be in the folder in which you have initialized buildozer (bulldozer init)

0reactions
struckchurecommented, May 6, 2020

I don’t get the --private thing, is it a flag to add along with buildozer?

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUILD FAILURE: No main.py(o) found in your app directory
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...
Read more >
BUILD FAILURE: No main.py(o) found in your app directory.
BUILD FAILURE : No main.py(o) found in your app directory. I have edited the buildozer.spec file and I have. "source.dir = ." I'm...
Read more >
[buildozer] No main.py(o) found in your app directory.
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...
Read more >
I keep compiling my kivy to .APK and I keep getting errors
BUILD FAILURE: No main.py(o) found in your app directory. github.com. BUILD FAILURE: No ... Author. Inside the TeeMah folder, there's .buildozer folder.
Read more >
kivy-Buildozer: packed to android apk - Karobben
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing. BUILD FAILURE: No main.py(o) found in your app directory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found