Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Valueerror: MDRaisedButton._md_bg_color How do I solve this error in my ubuntu buildozer kivy app after I run buildozer android debug deploy run logcat? Please help I have been stuck for weeks and have been working on this for a long time. It would be a shame for it to end like this.
Check the code out at https://github.com/woohoufeng/gasstationfinder

This is the requirements in my buildoze.spec file: requirements = python3,mysql-connector-python==8.0.26,mysql==0.0.3,PIL==8.3.1,kivymd==0.104.2,kivy==2.0.0rc1,requests,certifi,urllib3,chardet,idna,plyer,kivy_garden.mapview,pytz

What I have tried:

I have no idea how to solve this as I dont understand this error. Valueerror: MDRaisedButton._md_bg_color How do I solve this error in my ubuntu buildozer kivy app after I run buildozer android debug deploy run logcat
Posted
Updated 5-Aug-21 3:31am
v3
Comments
Richard Deeming 5-Aug-21 8:23am    
There's a secret error somewhere in your secret code. You need to fix that.

Seriously, how do you expect anyone to help you fix an error when you don't provide any details of the error, nor the code it's thrown from?

Click the green "Improve question" link. Update your question to include the relevant parts of your code, and the full details of the error. Remember to indicate which line of code the error relates to.
LeeWoo0101 5-Aug-21 8:30am    
It is a very long code. Thanks for answering and helping. The code is in https://github.com/woohoufeng/gasstationfinder. In the mean time can you tell me what it means.
Richard MacCutchan 5-Aug-21 8:46am    
Did you actually read the above? You need to provide the details here in your question.
LeeWoo0101 5-Aug-21 9:19am    
I linked the github code. It is too long to send here. Just click on the link.
Richard MacCutchan 5-Aug-21 9:26am    
No one is going to go to github to look at some code they have never seen before, and have no idea what it is supposed to do. If you cannot show the part of the code that is failing, and provide full details of the problem, then it is not possible to offer any suggestions.

1 solution

The exception is raised because some values that you are passing are incorrect. The documentation: Button — KivyMD 1.0.0.dev0 documentation[^] should explain which one it is.
 
Share this answer
 
Comments
LeeWoo0101 5-Aug-21 10:58am    
However, when I run the same code in my pycharm and not ubuntu buildozer virtualbox it works.
Richard MacCutchan 5-Aug-21 11:14am    
Fine, but you still need to find out what causes the exception.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900