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

Buildozer not failing when source files have indentation errors #181

Closed
Samureus opened this issue Feb 17, 2015 · 2 comments
Closed

Buildozer not failing when source files have indentation errors #181

Samureus opened this issue Feb 17, 2015 · 2 comments

Comments

@Samureus
Copy link

Not sure if this should be reported here or in python-for-android, but attaching the relevant snippets:

# Package the application
(cut)
Compiling /home/samo/Dev/Projects/kivy-android-samples/ads/adbuddiz/.buildozer/android/app/main.py ...
Sorry: IndentationError: ('expected an indented block',
('/home/samo/Dev/Projects/kivy-android-samples/ads/adbuddiz/.buildozer/android/app/main.py',
20, 12, '    AdBuddiz.showAd(PythonActivity.mActivity)\n'))

Buildozer will ignore the IndentationError and continue to build the APK. I believe it should abort at this point as the app will not run anyway, it will just fail with a cryptic message in logcat:

I/python  ( 6713): No main.pyo / main.py found.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@tito
Copy link
Member

tito commented Mar 8, 2015

Yep, buildozer doesn't do any sanity check on your source code to ensure it is correctly formatted. Neither python -m compileall will stop if a source is not working.

@AndreMiras
Copy link
Member

Indeed buildozer is not a Python parser

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

3 participants