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

Syntax error in Kivy and KivyMD dependencies file when using Buildozer to compile KivyMD app #1051

Closed
mkc2019 opened this issue Apr 7, 2020 · 1 comment

Comments

@mkc2019
Copy link

mkc2019 commented Apr 7, 2020

Versions

  • Python: 3.6.9
  • OS: Ubuntu 18.04
  • Buildoze

Description

I was trying to build my KivyMD app and run it inside my android phone. It used to work once, although the app failed to open at that time. After doing some changes to .spec and trying to run it again, I kept receiving an error saying that there are syntax errors in Kivy and KivyMD library. Since those are dependencies, I have no means of changing them...

It seems that Buildozer is not using the correct python to compile the files, but I am not sure how to check that, neither do I know how to fix it.

Would you have any idea what is happening?

Command:

buildozer -v android debug

Spec file:

buildozer.spec.txt

Logs

error log.txt

@mkc2019
Copy link
Author

mkc2019 commented Apr 9, 2020

Ok. I sort of fix it, but it is quite a painful solution.

Apparently, my buildozer installation is messed up. Therefore, I decided to re-install my Linux OS.

After setting up my VM again, I followed through the buildozer installation guide on Buildozer site:
https://buildozer.readthedocs.io/en/latest/installation.html

And guess what? It works!

Note: I did not install buildozer into my default python3. Instead, I install it into my virtual environment as it is easier to manage that way. Most importantly, I don't have to confuse myself with pip and pip3 because I am sure that python 3 is being used.

@mkc2019 mkc2019 closed this as completed Apr 21, 2020
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

1 participant