Python Forum
Jupyter Notebook TypeError Holidays entity loader class - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: Jupyter Notebook TypeError Holidays entity loader class (/thread-40385.html)



Jupyter Notebook TypeError Holidays entity loader class - bmanning20 - Jul-20-2023

Hello. I getting an error when running cells in Jupyter Notebook file. Please show me how to fix this. I am interested in anyone with Jupyter and Python experience to do a zoom to help me get this application running. Do not mind paying. The error is below.

TypeError: This is a python-holidays entity loader class. For entity inheritance purposes please import a class you want to derive from directly: e.g., from holidays.countries import Entity or from holidays.financial import Entity

code error:

TypeError Traceback (most recent call last)
<ipython-input-11-f483aa231210> in <module>
----> 1 import models.oracle as oracle

~\Bitcoin_Predictor\predictor\models\oracle.py in <module>
7 import tensorflow as tf
8 import sklearn.metrics
----> 9 import sti.sti as sti
10 import pandas as pd
11 import numpy as np

~\Bitcoin_Predictor\predictor\sti\sti.py in <module>
1 import pandas as pd
----> 2 import fbprophet
3 import warnings
4 import ta
5

D:\Users\user\anaconda3\lib\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.7.1'

D:\Users\user\anaconda3\lib\site-packages\fbprophet\forecaster.py in <module>
15 import pandas as pd
16
---> 17 from fbprophet.make_holidays import get_holiday_names, make_holidays_df
18 from fbprophet.models import StanBackendEnum
19 from fbprophet.plot import (plot, plot_components)

D:\Users\user\anaconda3\lib\site-packages\fbprophet\make_holidays.py in <module>
12 import pandas as pd
13
---> 14 import fbprophet.hdays as hdays_part2
15 import holidays as hdays_part1
16

D:\Users\user\anaconda3\lib\site-packages\fbprophet\hdays.py in <module>
922 # Include TU as an alias for backwards compatibility.
923
--> 924 class TU(Turkey):
925 pass
926

~\AppData\Roaming\Python\Python38\site-packages\holidays\registry.py in __init__(self, path, *args, **kwargs)
170 """Set up a lazy loader."""
171 if args:
--> 172 raise TypeError(
173 "This is a python-holidays entity loader class. "
174 "For entity inheritance purposes please import a class you "

TypeError: This is a python-holidays entity loader class. For entity inheritance purposes please import a class you want to derive from directly: e.g., from holidays.countries import Entity or from holidays.financial import Entity.