Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Error in the 5th step #22

Open
alstomli opened this issue Feb 18, 2020 · 6 comments
Open

Error in the 5th step #22

alstomli opened this issue Feb 18, 2020 · 6 comments

Comments

@alstomli
Copy link

alstomli commented Feb 18, 2020

There is an error shows up in the 5th step when I import fbprophet

# Import packages
import fbprophet
import datetime as dt

print('Packages imported.')
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-17-88bc45a5ace3> in <module>
      1 # Import packages
----> 2 import fbprophet
      3 import datetime as dt
      4 
      5 print('Packages imported.')

/opt/conda/envs/Python36/lib/python3.6/site-packages/fbprophet/__init__.py in <module>
      6 # of patent rights can be found in the PATENTS file in the same directory.
      7 
----> 8 from fbprophet.forecaster import Prophet
      9 
     10 __version__ = '0.5'

/opt/conda/envs/Python36/lib/python3.6/site-packages/fbprophet/forecaster.py in <module>
     20 from fbprophet.make_holidays import get_holiday_names, make_holidays_df
     21 from fbprophet.models import prophet_stan_model
---> 22 from fbprophet.plot import (plot, plot_components, plot_forecast_component,
     23                             plot_seasonality, plot_weekly, plot_yearly,
     24                             seasonality_plot_df)

/opt/conda/envs/Python36/lib/python3.6/site-packages/fbprophet/plot.py in <module>
     20 
     21 try:
---> 22     from matplotlib import pyplot as plt
     23     from matplotlib.dates import (
     24         MonthLocator,

/opt/conda/envs/Python36/lib/python3.6/site-packages/matplotlib/pyplot.py in <module>
     30 from cycler import cycler
     31 import matplotlib
---> 32 import matplotlib.colorbar
     33 import matplotlib.image
     34 from matplotlib import rcsetup, style

/opt/conda/envs/Python36/lib/python3.6/site-packages/matplotlib/colorbar.py in <module>
     25 
     26 import matplotlib as mpl
---> 27 import matplotlib.artist as martist
     28 import matplotlib.cbook as cbook
     29 import matplotlib.collections as collections

/opt/conda/envs/Python36/lib/python3.6/site-packages/matplotlib/artist.py in <module>
     55 
     56 
---> 57 class Artist(object):
     58     """
     59     Abstract base class for objects that render into a FigureCanvas.

/opt/conda/envs/Python36/lib/python3.6/site-packages/matplotlib/artist.py in Artist()
     62     """
     63     @cbook.deprecated("3.1")
---> 64     @property
     65     def aname(self):
     66         return 'Artist'

/opt/conda/envs/Python36/lib/python3.6/site-packages/matplotlib/cbook/deprecation.py in deprecate(obj, message, name, alternative, pending, addendum)
    180                 pass
    181     """
--> 182 
    183     def deprecate(obj, message=message, name=name, alternative=alternative,
    184                   pending=pending, obj_type=obj_type, addendum=addendum):

AttributeError: 'property' object has no attribute '__name__'
@alstomli
Copy link
Author

I executed the former cells successfully, but this error just shows up, could anyone help me with it? thank you very much!

@sanjeevghimire
Copy link
Contributor

sanjeevghimire commented Feb 18, 2020

@alstomli Was the installation of fbprophet successful?

@alstomli
Copy link
Author

Yes it is

# Install fbprophet from conda-forge (this will take some time, please be patient)
!conda install -c conda-forge fbprophet=0.5 -y

Solving environment: done

# All requested packages already installed.

@alstomli
Copy link
Author

image

@basharourabi
Copy link

I ave the same error

@yanneisiodu
Copy link

Same error here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants