question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError: Matplotlib

See original GitHub issue

Software Versions

  • Python: 3.7, 3.9, 3.10
  • OS: Ubuntu
  • Kivy: 2.1.0
  • Kivy installation method:pip install

Describe the bug I have issues with matplotlib==3.1.0 with kivy android build. Its working fine on desktop when i try to build with buildozer it crash android application with an error. KeyError: ‘kivy.garden.matplotlib’

I checked online answers but none helped. https://stackoverflow.com/questions/63655196/how-to-get-rid-of-keyerror-kivy-garden-matplotlib this answer suggests to downgrade matplotlib but it cannot downgrade as it dependent on cartopy

Expected behavior I want to build my app with android

Code and Logs and screenshots

08-22 18:46:12.293 31153 31688 I python  :  KeyError: 'kivy.garden.matplotlib'
08-22 18:46:12.293 31153 31688 I python  : Python for android ended.

Here is project requirements attrs==22.1.0 Cartopy==0.20.3 certifi==2022.6.15 cffi==1.15.1 cfgrib==0.9.10.1 charset-normalizer==2.1.0 click==8.1.3 cycler==0.11.0 Cython==0.29.32 docutils==0.19 eccodes==1.4.2 findlibs==0.0.2 fonttools==4.36.0 idna==3.3 importlib-metadata==4.12.0 Kivy==2.1.0 Kivy-Garden==0.1.5 kivymd==1.0.2 kiwisolver==1.4.4 matplotlib==3.1.0 numpy==1.21.6 packaging==21.3 pandas==1.3.5 Pillow==9.2.0 pycparser==2.21 Pygments==2.13.0 pygrib==2.1.4 pyparsing==3.0.9 pyproj==3.2.1 pyshp==2.3.1 python-dateutil==2.8.2 pytz==2022.2.1 requests==2.28.1 Shapely==1.8.4 six==1.16.0 typing_extensions==4.3.0 urllib3==1.26.11 xarray==0.20.2 zipp==3.8.1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
misl6commented, Aug 23, 2022

HI @zaheerkzz ! Can you please post the full log?

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyError when plotting a sliced pandas dataframe with ...
Stepping the trace in the case of date column, shows that matplotlib tries to do x[0] on the dates to retrieve tz info,...
Read more >
Python KeyError Exceptions and How to Handle Them
The Python KeyError is a type of LookupError exception and denotes that there was an issue retrieving the key you were looking for....
Read more >
Debugger raises a KeyError referencing matplotlib.pyplot #2982
Issue Type: Bug Backend TkAgg is interactive backend. Turning interactive mode on. Traceback (most recent call last): File ...
Read more >
How to Fix KeyError Exceptions in Python - Rollbar
The Python KeyError is an exception that occurs when an attempt is made to access an item in a dictionary that does not...
Read more >
keyerror in Python – How to Fix Dictionary Error
When working with dictionaries in Python, a KeyError gets raised when you try to access an item that doesn't exist in a Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found