When building apk, KeyError: 'kivy.garden.matplotlib' appears

287 views
Skip to first unread message

jungsy

unread,
Dec 21, 2022, 2:22:48 AM12/21/22
to Kivy users support
I am trying to show a graph in my kivy app, but when deploying on mobile device, the app terminates and shows  KeyError: 'kivy.garden.matplotlib'. 

I am guessing that my requirements are wrong in the spec file, but cannot find a clue on how to work it.

The problem-causing module that I imported at main.py is: 
'from kivy.garden.matplotlib import FigureCanvasKivyAgg'

In my spec file, I added my requirements:
python3, kivy, requests, chardet, charset_normalizer, urllib3, idna, certifi, matplotlib, kivy-garden.

The full logcat can be found here:

Any help will be appreciated.

Regards
log1.txt

Robert

unread,
Dec 21, 2022, 12:15:49 PM12/21/22
to Kivy users support

jungsy

unread,
Dec 22, 2022, 7:39:26 PM12/22/22
to Kivy users support
Dear sir,
I have added requirements: kivy_garden.matplotlib , but an error: Could not find a version that satisfies the requirement kivy-garden.matplotlib (from versions: none)shows up.
I have also tried adding the requirements kivy.garden.matplotlib, but the same error: ERROR: Could not find a version that satisfies the requirement kivy.garden.matplotlib (from versions: none) shows.

I have tried the solutions here: but the error is not solved what so ever.

Any Ideas...?

2022년 12월 22일 목요일 오전 2시 15분 49초 UTC+9에 Robert님이 작성:

Robert

unread,
Dec 22, 2022, 10:03:13 PM12/22/22
to Kivy users support
> For flowers that are not maintained copy the code to your project and edit so that it builds.

jungsy

unread,
Dec 22, 2022, 11:39:11 PM12/22/22
to Kivy users support
Thank you for the advice, but I cannot understand how to 'copy the code to your project'.
Which code do I need to copy and edit?

Also, I have edited my spec file requirements by adding: kivy-garden.graph, and now a new error : ModuleNotFoundError: No module named 'kivy_garden' appears...

2022년 12월 23일 금요일 오후 12시 3분 13초 UTC+9에 Robert님이 작성:
Reply all
Reply to author
Forward
0 new messages