watson-stock-market-predictor icon indicating copy to clipboard operation
watson-stock-market-predictor copied to clipboard

Error in the 5th step

Open alstomli opened this issue 4 years ago • 6 comments

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 avatar Feb 18 '20 18:02 alstomli

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

alstomli avatar Feb 18 '20 18:02 alstomli

@alstomli Was the installation of fbprophet successful?

sanjeevghimire avatar Feb 18 '20 18:02 sanjeevghimire

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 avatar Feb 18 '20 19:02 alstomli

image

alstomli avatar Feb 18 '20 19:02 alstomli

I ave the same error

basharourabi avatar Mar 28 '20 11:03 basharourabi

Same error here

yanneisiodu avatar May 08 '20 17:05 yanneisiodu