FB Prophet 1.1.1 sudden failure

Summary

I have been running FB Prophet 1.1.1 on my streamlit cloud site for about a year. All of the sudden I am getting an error from the prophet import statement. The line of code is:

from prophet import Prophet

The error is:

File "/app/bobcat/pages/3_Fresh_Inventory_Forecasting.py", line 10, in <module>
    from prophet import ProphetFile "/home/appuser/venv/lib/python3.9/site-packages/prophet/__init__.py", line 7, in <module>
    from prophet.forecaster import ProphetFile "/home/appuser/venv/lib/python3.9/site-packages/prophet/forecaster.py", line 18, in <module>
    from prophet.make_holidays import get_holiday_names, make_holidays_dfFile "/home/appuser/venv/lib/python3.9/site-packages/prophet/make_holidays.py", line 14, in <module>
    import prophet.hdays as hdays_part2File "/home/appuser/venv/lib/python3.9/site-packages/prophet/hdays.py", line 683, in <module>
    class TU(Turkey):File "/home/appuser/venv/lib/python3.9/site-packages/holidays/registry.py", line 178, in __init__
    super().__init__(*args, **kwargs)

Not sure what to do here. If this were my server, I’d try uninstalling and reinstalling the prophet libraries. I rebooted the server, but the same issue.

Is there something I can do to re-install the prophet libraries?

  • Streamlit version: (get it with $ streamlit version) Streamlit Cloud
  • Python version: (get it with $ python --version) 3.9
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Probably update prophet to the latest version 1.1.3, there was an issue with the holidays package:

https://github.com/facebook/prophet/issues/2430

Thank you! Updated requirements.txt to prophet 1.1.3 and rebooted the site - worked like a charm!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.