-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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??? #2262
Comments
This fails as described in detail here #2261 To get this to build, comment this line:
Any body looking into why this might be, should also comment this line (Though it does not appear to be the cause of the issue)
|
Those two lines above you said to comment: |
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. (comment out) (str) python-for-android fork to use, defaults to upstream (kivy) (comment out) (str) python-for-android branch to use, defaults to master Here's the problem... I have a sample project, 1 file, main.py, that is a Hello-World-MatPlotLib program in a Public Repository on GitHub: in the Buildozer.spec file if you do NOT comment these two lines out: 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: it will compile an APK file. So you get one or the other but not both? |
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. |
To debug 1: create a local copy and insert whatever code makes you happy. 2: since you know the master version works, look at the changes since then Easier still, presumably one could create a local copy of the master version and don't sweat the what is up with develop, though it would be helpful if you could figure it out for whoever looks after this. Generic instructions for creating a local copy of a recipe follow: Replace RECIPE_NAME with whatever recipe you are changing:
|
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 |
you can just add "sdl2_ttd==2.0.15" in requirements and see if it works without forking p4a( i had the same problem "icon not showing in kivymd " . Putting the sdl2_ttf==2.0.15 in requirements solved my problem. (I did not check with matplotlib, but you can check and see if it works) |
Checklist
p4a.branch = develop
)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: