prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Incompatible with numpy or unupdated library

Open jero98772 opened this issue 1 year ago • 1 comments

i get this error in python 3.12.4 in linux manjaro machine with numpy at 2.1.1

Importing plotly failed. Interactive plots will not work.
Traceback (most recent call last):
  File "/tmp/test.py", line 1, in <module>
    from prophet import Prophet
  File "/tmp/prophet-env/lib/python3.12/site-packages/prophet/__init__.py", line 7, in <module>
    from prophet.forecaster import Prophet
  File "/tmp/prophet-env/lib/python3.12/site-packages/prophet/forecaster.py", line 28, in <module>
    class Prophet(object):
  File "/tmp/prophet-env/lib/python3.12/site-packages/prophet/forecaster.py", line 459, in Prophet
    ) -> NDArray[np.float_]:
                 ^^^^^^^^^
  File "/tmp/prophet-env/lib/python3.12/site-packages/numpy/__init__.py", line 400, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.


with this code simple code


from prophet import Prophet

i think the library is not updated

jero98772 avatar Sep 05 '24 18:09 jero98772

Fixed in https://github.com/facebook/prophet/pull/2592

tisba avatar Sep 11 '24 09:09 tisba