You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to run an instance of the greykite.framework.templates.forecaster.Forecaster class, I get the following error log (output of the loguru library):
File "C:\Users\lyubomir.shoylev\work\forecasting_debug\silverkite\model.py", line 11, in <module>
from greykite.framework.templates.forecaster import Forecaster
File "C:\Users\lyubomir.shoylev\work\forecasting_debug\.venv\lib\site-packages\greykite\framework\templates\forecaster.py", line 37, in <module>
from greykite.framework.pipeline.pipeline import ForecastResult
File "C:\Users\lyubomir.shoylev\work\forecasting_debug\.venv\lib\site-packages\greykite\framework\pipeline\pipeline.py", line 47, in <module>
from greykite.framework.input.univariate_time_series import UnivariateTimeSeries
File "C:\Users\lyubomir.shoylev\work\forecasting_debug\.venv\lib\site-packages\greykite\framework\input\univariate_time_series.py", line 41, in <module>
from greykite.common.viz.timeseries_plotting import add_groupby_column
File "C:\Users\lyubomir.shoylev\work\forecasting_debug\.venv\lib\site-packages\greykite\common\viz\timeseries_plotting.py", line 37, in <module>
from greykite.common.viz.colors_utils import get_color_palette
File "C:\Users\lyubomir.shoylev\work\forecasting_debug\.venv\lib\site-packages\greykite\common\viz\colors_utils.py", line 25, in <module>
from matplotlib.cm import get_cmap
ImportError: cannot import name 'get_cmap' from 'matplotlib.cm' (C:\Users\lyubomir.shoylev\work\forecasting_debug\.venv\lib\site-packages\matplotlib\cm.py)
Reason
The newest release of matplotlib v.3.9.0 merged a commit that moves the deprecated matplotlib.cm.get_cmap() function used in the colors_utils component of greykite. The commit can be found here. The function is moved from the matplotlib.cm module to the matplotlib.pyplot module.
The matplotlib.pyplot version was introduced in this commit, which is merged in since v3.6.0.
Possible solutions
Currently, the matplotlib version imported with the greykite package is determined in the setup.py by line 18 as "matplotlib>=3.4.1".
I propose to either:
Update requirements to maximal version v3.8.4.
Update requirements to minimal version v3.6.0, and update the import statement to the pyplot component.
The text was updated successfully, but these errors were encountered:
Problem
I am running the following setup:
v3.10.13
greykite==0.5.0
When attempting to run an instance of the
greykite.framework.templates.forecaster.Forecaster
class, I get the following error log (output of theloguru
library):Reason
The newest release of
matplotlib v.3.9.0
merged a commit that moves the deprecatedmatplotlib.cm.get_cmap()
function used in thecolors_utils
component ofgreykite
. The commit can be found here. The function is moved from thematplotlib.cm
module to thematplotlib.pyplot
module.The
matplotlib.pyplot
version was introduced in this commit, which is merged in sincev3.6.0
.Possible solutions
Currently, the
matplotlib
version imported with thegreykite
package is determined in thesetup.py
by line 18 as"matplotlib>=3.4.1"
.I propose to either:
v3.8.4
.v3.6.0
, and update the import statement to thepyplot
component.The text was updated successfully, but these errors were encountered: