cannot import name 'warnings' from 'matplotlib.dates'
Igor-san last edited by
I did not find the Issues section in GitHub.
file "github.com\backtrader-master\backtrader\plot\locator.py", line 35, in <module> from matplotlib.dates import (HOURS_PER_DAY, MIN_PER_HOUR, SEC_PER_MIN, ImportError: cannot import name 'warnings' from 'matplotlib.dates' (C:\Python38\lib\site-packages\matplotlib\dates.py)
But I changed the import line and it work for me
from matplotlib import warnings
vladisld last edited by
I think the PR was submitted fixing this exact issue:
phat last edited by
I reinstall the matplotlib with version 3.2.0 and everything is fine.