Error when loading prophet library in notebook

Hello,
I get an error after importing the prophet library in my notebook despite I already installed it in my environment:

from prophet import Prophet

import pandas as pd

Traceback (most recent call last):
at cell 7, line 1
at /opt/python/envs/default/lib/python3.8/site-packages/prophet/init.py, line 7
at /opt/python/envs/default/lib/python3.8/site-packages/prophet/forecaster.py, line 19
at /opt/python/envs/default/lib/python3.8/site-packages/prophet/make_holidays.py, line 14
at /opt/python/envs/default/lib/python3.8/site-packages/prophet/hdays.py, line 779
at /opt/python/envs/default/lib/python3.8/site-packages/holidays/registry.py, line 178, in init(self, path, *args, **kwargs)
TypeError: object.init() takes exactly one argument (the instance to initialize)

can you please help?
thanks!

1 Like