-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import with matplotlib 3.0.0 installed #58
Comments
Hi,
|
Ok, so I implemented `Traceback (most recent call last): Process finished with exit code 1` Out of curiosity, I changed matplotlib's Any suggestions? Does anybody know more or less how much effort is needed to get the matplotlib Kivy flower to work with matplotlib 3.0.0? Would it be trivial? |
By the way, it's still possible to get it to run on a virtual environment by installing matplotlib 2.0.0:
|
Hello @mcu101 |
Did #62 fix your issue? |
@matham: I'll check it out in the next few days. |
@mcu101 Did it ever get sorted out if this backend works with mpl >= 3.0? |
Try this: #from matplotlib import _png |
instead of altering kivy.garden code, this one works for me
|
C:\Users\enzok\AppData\Local\Programs\Python\Python36\python.exe D:/py_projs/every_day_task/test2.py
[INFO ] [Logger ] Record log in C:\Users\enzok.kivy\logs\kivy_18-09-20_37.txt
[INFO ] [Kivy ] v1.10.1
[INFO ] [Python ] v3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)]
Traceback (most recent call last):
File "D:/py_projs/every_day_task/test2.py", line 1, in
from kivy.garden.matplotlib import *
File "C:\Users\enzok\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\garden_init_.py", line 100, in load_module
return self.load_module(fullname, moddir)
File "C:\Users\enzok\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\garden_init.py", line 104, in _load_module
('', '', imp.PKG_DIRECTORY))
File "C:\Users\enzok\AppData\Local\Programs\Python\Python36\lib\imp.py", line 244, in load_module
return load_package(name, filename)
File "C:\Users\enzok\AppData\Local\Programs\Python\Python36\lib\imp.py", line 216, in load_package
return load(spec)
File "C:\Users\enzok.kivy\garden\garden.matplotlib_init.py", line 1, in
from kivy.garden.matplotlib.backend_kivy import FigureCanvasKivy,
File "C:\Users\enzok.kivy\garden\garden.matplotlib\backend_kivy.py", line 257, in
from matplotlib.font_manager import weight_as_number
ImportError: cannot import name 'weight_as_number'
The text was updated successfully, but these errors were encountered: