prophet icon indicating copy to clipboard operation
prophet copied to clipboard

cannot import name 'easter'

Open nescobar opened this issue 6 years ago • 9 comments

I have a job running daily forecasts with Prophet. Starting today, there is this error when trying to import a 'easter' package. This happens when importing get_holiday_names and make_holidays_df from fbprophet.make_holidays package.

Any ideas on how to resolve this?

Thanks.

nescobar avatar Jan 27 '20 09:01 nescobar

holidays package is updated, structure is completely different. I'll be on it.

sarikayamerts avatar Jan 27 '20 09:01 sarikayamerts

or you can stick to the previous version of holidays, as pip install holidays==0.9.12

sarikayamerts avatar Jan 27 '20 09:01 sarikayamerts

or you can stick to the previous version of holidays, as pip install holidays==0.9.12

I'm applying pip install holidays==0.9.12 before importing Prophet but getting the same error

nescobar avatar Jan 27 '20 09:01 nescobar

holidays==0.9 worked fine for me using prophet ==0.4

fbossolan avatar Jan 27 '20 12:01 fbossolan

There is no version 0.9 according to the release history https://pypi.org/project/holidays/#history

nescobar avatar Jan 27 '20 12:01 nescobar

Not sure why, but it works now with pip install holidays==0.9.12

nescobar avatar Jan 27 '20 12:01 nescobar

Hi, here https://github.com/dr-prodigy/python-holidays/issues/277 you'll find a fix for this issue, which is deriving from a wrong reference made to Easter (which is not part of holidays), in prophet code.

dr-prodigy avatar Jan 27 '20 20:01 dr-prodigy

I fixed this problem by uninstalling prophet :+1:

vkarpov15 avatar Jan 30 '20 17:01 vkarpov15

Still getting the easter issue - I have tried uninstalling both prophet and holidays

brandy888 avatar Feb 12 '20 16:02 brandy888