Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cTas0099 opened this issue Dec 9, 2018 · 5 comments
Closed

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

cTas0099 opened this issue Dec 9, 2018 · 5 comments

Comments

@cTas0099
Copy link

cTas0099 commented Dec 9, 2018

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.

@ghost
Copy link

ghost commented Dec 9, 2018

The --private option should point to your application source code folder. As of now, python-for-android won't "install" your application (with setup.py or anything like that), but rather run a file main.py as the application entry point - this file needs to be in your --private folder and will be what is launched when the app starts.

@cTas0099
Copy link
Author

@Jonast ohh, I'm stupid, thank you! it all worked

@elvis124
Copy link

still getting an error as still need main.py file though i have the file main.py

@struckchure
Copy link

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

@YPRAS
Copy link

YPRAS commented 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants