prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Update pystan in requirements

Open ahartikainen opened this issue 4 years ago • 9 comments

Currently latest pystan is 3.0.0 which is incompatible with 2.x.

https://pypi.org/project/pystan

Following PEP 440 could be used https://www.python.org/dev/peps/pep-0440/#compatible-release

pystan~=2.14

ahartikainen avatar Mar 25 '21 22:03 ahartikainen

Thanks for the heads up!

bletham avatar Mar 26 '21 04:03 bletham

I believe the latest compatible version would be pystan~=2.19.1.1.

See https://github.com/facebook/prophet/commit/82f3399409b7646c49280688f59e5a3d2c936d39#diff-b72f6e5561c432513e240838ae1eeb3f85237fa3ed5d701ad4c3be2a55c57b9d

LasseRegin avatar Mar 26 '21 10:03 LasseRegin

yes exactly. I cannot install fbprophet now. I have to install pystan==2.19.1.1 first then can install fbprophet properly.

qingchaowang avatar Mar 26 '21 10:03 qingchaowang

We have been able to install fbprophet but still getting an error while fitting. Any idea how this can be fixed?

File "/databricks/spark/python/pyspark/serializers.py", line 177, in _read_with_length
    return self.loads(obj)
  File "/databricks/spark/python/pyspark/serializers.py", line 466, in loads
    return pickle.loads(obj, encoding=encoding)
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-7daac45e-8dc6-4074-b2c2-8f85b1174384/lib/python3.7/site-packages/fbprophet/__init__.py", line 8, in <module>
    from fbprophet.forecaster import Prophet
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-7daac45e-8dc6-4074-b2c2-8f85b1174384/lib/python3.7/site-packages/fbprophet/forecaster.py", line 17, in <module>
    from fbprophet.make_holidays import get_holiday_names, make_holidays_df
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-7daac45e-8dc6-4074-b2c2-8f85b1174384/lib/python3.7/site-packages/fbprophet/make_holidays.py", line 14, in <module>
    import fbprophet.hdays as hdays_part2
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-7daac45e-8dc6-4074-b2c2-8f85b1174384/lib/python3.7/site-packages/fbprophet/hdays.py", line 14, in <module>
    from lunarcalendar import Lunar, Converter
ModuleNotFoundError: No module named 'lunarcalendar''. Full traceback below:
Traceback (most recent call last):
  File "/databricks/spark/python/pyspark/serializers.py", line 177, in _read_with_length
    return self.loads(obj)
  File "/databricks/spark/python/pyspark/serializers.py", line 466, in loads
    return pickle.loads(obj, encoding=encoding)
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-7daac45e-8dc6-4074-b2c2-8f85b1174384/lib/python3.7/site-packages/fbprophet/__init__.py", line 8, in <module>
    from fbprophet.forecaster import Prophet
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-7daac45e-8dc6-4074-b2c2-8f85b1174384/lib/python3.7/site-packages/fbprophet/forecaster.py", line 17, in <module>
    from fbprophet.make_holidays import get_holiday_names, make_holidays_df
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-7daac45e-8dc6-4074-b2c2-8f85b1174384/lib/python3.7/site-packages/fbprophet/make_holidays.py", line 14, in <module>
    import fbprophet.hdays as hdays_part2
  File "/local_disk0/.ephemeral_nfs/envs/pythonEnv-7daac45e-8dc6-4074-b2c2-8f85b1174384/lib/python3.7/site-packages/fbprophet/hdays.py", line 14, in <module>
    from lunarcalendar import Lunar, Converter
ModuleNotFoundError: No module named 'lunarcalendar'

waqas-zia-confiz avatar Mar 26 '21 16:03 waqas-zia-confiz

We're pushing a new release with the updated pinned version very soon.

seanjtaylor avatar Mar 26 '21 16:03 seanjtaylor

Is this resolved by any chance already?

mrshu avatar Jun 23 '21 18:06 mrshu

@mrshu , Prophet 1.1 has been released and has simplified the install workflow and removed the Pystan requirement

You can now pip install prophet to install a pre-compiled wheel

akosfurton avatar Jun 27 '22 14:06 akosfurton

Hi, how can I download the right version of pystan or any other necessary library to fit a time series model by using facebookprophet. Last year there was no problem. Yesterday I tried again but it could not be possible to fit the model. I have used also pystan==2.19.1.1. Does anyone know a working solution?

tanercam avatar Aug 01 '22 17:08 tanercam

Currently latest pystan is 3.0.0 which is incompatible with 2.x.

https://pypi.org/project/pystan

Following PEP 440 could be used https://www.python.org/dev/peps/pep-0440/#compatible-release

pystan~=2.14

Hi, how can I download the right version of pystan or any other necessary library to fit a time series model by using facebookprophet. Last year there was no problem. Yesterday I tried again but it could not be possible to fit the model. I have used also pystan==2.19.1.1. Does anyone know a working solution?

tanercam avatar Aug 01 '22 17:08 tanercam

Closing due to PyStan no longer being a dependency of prophet

WardBrian avatar Oct 12 '23 13:10 WardBrian