Skip to content

Issue compiling kivy and kivyMD (module error) #1914

@anonymus-coder987

Description

@anonymus-coder987

I'm making an app through bulldozer
The requirements are specified as kivy==2.3.1 , git+https://github.com/kivymd/KivyMD.git (im using 2.0.1.dev0)etc
The apk is made , but the app crashes immediately

By using logcat , it gave an error in kivys file , "no module named filetype"
It was a pure python module so I was able to just specify it in the requirements
However, after doing that the filetype error fixed but I received another module error

(Kivy)Traceback (most recent call last):
2025-04-26 23:24:46.928 21803-21900 python org.test.chirayu I File "/mnt/c/Users/Dell/Desktop/Health_final/.buildozer/android/app/main.py", line 2, in
2025-04-26 23:24:46.929 21803-21900 python org.test.chirayu I File "/mnt/c/Users/Dell/Desktop/Health_final/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/chirayu/arm64-v8a/kivymd/app.py", line 65, in
2025-04-26 23:24:46.929 21803-21900 python org.test.chirayu I File "/mnt/c/Users/Dell/Desktop/Health_final/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/chirayu/arm64-v8a/kivymd/theming.py", line 49, in
2025-04-26 23:24:46.929 21803-21900 python org.test.chirayu I ModuleNotFoundError: No module named 'materialyoucolor'
2025-04-26 23:24:46.929 21803-21900 python org.test.chirayu I Python for android ended.

(Line 2 of the main.py is from kivymd.uix.label import MDlabel)

Adding materialyoucolour in the requirements is not possible

Cython is also in the requirements

It seems that the modules for kivy and kivyMD are not initialized properly

So what should I do?

Do i have to make recipes for both of them or do I have to download the file from git and add it to the requirements as a local file path?

I cannot change the version of kivyMD because of major code differences that would absolutely destroy my apps code if I change it to a lower version (for ex , the buttons and textinputs have inner functions for hint text and text respectively and the method to call them is different too)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions