-
Notifications
You must be signed in to change notification settings - Fork 523
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
KivyMD #257 Bug vs MatPlotLib, one or the other??? #1189
Comments
as you can see from the traceback above: and I have stepped through Buildozer compiler in debug mode and confirmed... in the class: there is a function:
Above is the line responsible for the exception being thrown. I can't figure out why because I can't figure out how to put a breakpoint in the code that will be triggered. I was able to run BUILDOZER in debug mode and step through the code. But this appears to be in the Python-For-Android code which is a mystery to me on how to make it run in debug mode. |
if you do NOT use the KivyMD #257 bug fix, meaning do NOT add the following two lines (or their equivalent) to your Buildozer.spec file: and just compile normally, MatPlotLib will work. As for the ICONS you can have icons display, just do not use the pre-made icons in KivyMD. Go to https://material.io/resources/icons/?icon=info&style=baseline |
Versions
Description
I'm pretty sure this is a Buildozer Bug. But since Buildozer uses Python-4-Android maybe it's a P4A Bug. And this Bug originates from a KivyMD Bug Fix so that's involved too.
There is a BUG in KivyMD #257 regarding icons showing on the PC when you run your App but after building with BUILDOZER the icons no longer show in the App when you run it. The solution was to go to the Python-4-Android Repository on Github and FORK it, etc.
Then you now have two lines you have to add in your Buildozer.spec file:
(comment out) (str) python-for-android fork to use, defaults to upstream (kivy)
p4a.fork = (your username)
(comment out) (str) python-for-android branch to use, defaults to master
p4a.branch = develop
Here's the problem...
When you do the above to fix the Icon-Bug-Problem in KivyMD, you now create a NEW Bug where MatPlotLib will not compile.
I have a sample project, 1 file, main.py, that is a Hello-World-MatPlotLib program in a Public Repository on GitHub:
/~https://github.com/edwit1971/MatPlotLibHelloWorld
in the Buildozer.spec file if you do NOT comment these two lines out:
p4a.fork = (your username)
p4a.branch = develop
and type: buildozer android debug
you will get a MatPlotLib error and it won't compile an APK file.
if you comment these two lines out:
(comment out) p4a.fork = (your username)
(comment out) p4a.branch = develop
it will compile an APK file.
So you get one or the other but not both?
run: buildozer android debug
/~https://github.com/edwit1971/MatPlotLibHelloWorld
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: