kivy garden matplotlib error

1,260 views
Skip to first unread message

Degenerate Tech

unread,
Aug 15, 2020, 8:48:27 AM8/15/20
to Kivy users support
[INFO   ] [Logger      ] Record log in /home/sahil/.kivy/logs/kivy_20-08-15_49.txt
[INFO   ] [Kivy        ] v1.11.1
[INFO   ] [Kivy        ] Installed at "/usr/lib/python3/dist-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.6.9 (default, Jul 17 2020, 12:50:27)  
[GCC 8.4.0]
[INFO   ] [Python      ] Interpreter at "/usr/bin/python3"
[INFO   ] [Factory     ] 184 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'4.6.0 NVIDIA 440.100'>
[INFO   ] [GL          ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO   ] [GL          ] OpenGL renderer <b'GeForce GT 710/PCIe/SSE2'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60 NVIDIA'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
Traceback (most recent call last):
  File "main.py", line 14, in <module>
    from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg
  File "/usr/lib/python3/dist-packages/kivy/garden/__init__.py", line 173, in load_module
    return self._load_module(fullname, moddir)
  File "/usr/lib/python3/dist-packages/kivy/garden/__init__.py", line 177, in _load_module
    ('', '', imp.PKG_DIRECTORY))
  File "/usr/lib/python3.6/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.6/imp.py", line 217, in load_package
    return _load(spec)
  File "/home/sahil/.kivy/garden/garden.matplotlib/__init__.py", line 1, in <module>
    from kivy.garden.matplotlib.backend_kivy import FigureCanvasKivy,\
  File "/home/sahil/.kivy/garden/garden.matplotlib/backend_kivy.py", line 256, in <module>
    from matplotlib import _png
ImportError: cannot import name '_png'

Robert Flatt

unread,
Aug 15, 2020, 1:14:04 PM8/15/20
to Kivy users support

Degenerate Tech

unread,
Aug 15, 2020, 11:14:32 PM8/15/20
to Kivy users support
yes i did .the old method

Degenerate Tech

unread,
Aug 15, 2020, 11:42:08 PM8/15/20
to Kivy users support
please write the command to install ...I am using kubuntu 18.04

Robert Flatt

unread,
Aug 16, 2020, 12:23:55 PM8/16/20
to Kivy users support
All you have to do is read the docs, here is a specific example

Degenerate Tech

unread,
Aug 16, 2020, 2:28:11 PM8/16/20
to Kivy users support
pip3 install kivy_garden.matplotlib
Collecting kivy_garden.matplotlib
Exception:
Traceback (most recent call last):                                                                                                                                       
 File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main                                                                                            
   status = self.run(options, args)                                                                                                                                     
 File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run                                                                                        
   wb.build(autobuilding=True)                                                                                                                                          
 File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build                                                                                                 
   self.requirement_set.prepare_files(self.finder)                                                                                                                      
 File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files                                                                                   
   ignore_dependencies=self.ignore_dependencies))                                                                                                                       
 File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in _prepare_file                                                                                   
   require_hashes                                                                                                                                                       
 File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278, in populate_link                                                                               
   self.link = finder.find_requirement(self, upgrade)                                                                                                                   
 File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in find_requirement                                                                                      
   all_candidates = self.find_all_candidates(req.name)                                                                                                                  
 File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in find_all_candidates                                                                                   
   for page in self._get_pages(url_locations, project_name):                                                                                                            
 File "/usr/lib/python3/dist-packages/pip/index.py", line 568, in _get_pages                                                                                            
   page = self._get_page(location)                                                                                                                                      
 File "/usr/lib/python3/dist-packages/pip/index.py", line 683, in _get_page                                                                                             
   return HTMLPage.get_page(link, session=self.session)                                                                                                                 
 File "/usr/lib/python3/dist-packages/pip/index.py", line 795, in get_page                                                                                              
   resp.raise_for_status()                                                                                                                                              
 File "/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status                                                 
   raise HTTPError(http_error_msg, response=self)                                                                                                                       
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/kivy-garden-matplotlib/    
Message has been deleted

Robert Flatt

unread,
Aug 16, 2020, 10:10:02 PM8/16/20
to Kivy users support

I get

ERROR: Could not find a version that satisfies the requirement kivy_garden.matplotlib (from versions: none)
ERROR: No matching distribution found for kivy_garden.matplotlib

It seems garden.matplot lib has not been updated. I did not understand this.

Any reason you don't use matplotlib directly?


No idea about the old way.

Degenerate Tech

unread,
Aug 16, 2020, 10:59:18 PM8/16/20
to Kivy users support
i want to develope a plotting app by using matplotlib for android  or other os..so i need kivy matplotlib widgets and events ..

Degenerate Tech

unread,
Aug 17, 2020, 11:33:54 PM8/17/20
to Kivy users support
is there any solution?

Degenerate Tech

unread,
Aug 21, 2020, 1:05:51 AM8/21/20
to Kivy users support
i have uninstalled matplotlib version 3.3.1 and installed version 3.2.1 it working ..
Reply all
Reply to author
Forward
0 new messages