Python Forum
Jupyter Notebook TypeError Holidays entity loader class
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jupyter Notebook TypeError Holidays entity loader class
#1
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.
Larz60+ write Jul-22-2023, 03:25 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Jupyter notebooks, jupyter kernels, virtual environment created in Anaconda... bytecrunch 8 2,262 Nov-05-2023, 06:38 PM
Last Post: snippsat
  Why does graph look different in Codecademy and Jupyter Notebook abc123456 1 1,479 Mar-29-2023, 09:22 AM
Last Post: newbieAuggie2019
  Setting up and integrating Jupyter Notebook development environment with VSC Drone4four 3 1,855 Sep-12-2022, 09:18 AM
Last Post: Drone4four
Thumbs Up can't access data from URL in pandas/jupyter notebook aaanoushka 1 1,863 Feb-13-2022, 01:19 PM
Last Post: jefsummers
Exclamation Jupyter Notebook - Help Needed! eyadfr 1 1,834 Jan-26-2022, 06:42 PM
Last Post: jefsummers
  Help needed with Jupyter Notebook eyadfr 4 2,115 Jan-04-2022, 08:20 PM
Last Post: snippsat
  HELP! Importing json file into csv into jupyter notebook vilsef 2 2,567 Jan-22-2021, 11:06 AM
Last Post: snippsat
  How can draw a real-time marker on map using folium/leaflet Jupyter notebook C3PO 0 2,409 Dec-22-2020, 07:04 PM
Last Post: C3PO
  Python Custom Module not working in Jupyter Notebook with Pandas fid 0 2,028 Jul-04-2020, 11:05 AM
Last Post: fid
  How to change working directory in Jupyter Notebook? rajeev1729 2 21,070 Aug-25-2019, 07:25 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020