facebook / facebook/prophet

prophet-1.1.1 wheel built from prophet-1.1.1 sdist is not functional

Open
#2,266 4 comments 3 reactions 0 assignees View on GitHub
install py
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

Hello all,

I've been testing prophet-1.1.1 while building from sdist, and I ran into a problem - the resulting wheel is not functional, as embedded libraries are not properly linked in the stan model blob:

```
>>> import pandas as pd; from prophet import Prophet
Importing plotly failed. Interactive plots will not work.
>>> Prophet().fit(pd.DataFrame({"ds": ["2020-01-01", "2020-01-02", "2020-01-03"], "y": [1, 2, 3]}))
21:34:29 - cmdstanpy - INFO - Chain [1] start processing
21:34:29 - cmdstanpy - INFO - Chain [1] done processing
21:34:29 - cmdstanpy - ERROR - Chain [1] error: program not found Key has expired
Traceback (most recent call last):
File "", line 1, in
File "/home/coder/venv/lib/python3.10/site-packages/prophet/forecaster.py", line 1174, in fit
self.params = self.stan_backend.fit(stan_init, dat, **kwargs)
File "/home/coder/venv/lib/python3.10/site-packages/prophet/models.py", line 100, in fit
raise e
File "/home/coder/venv/lib/python3.10/site-packages/prophet/models.py", line 96, in fit
self.stan_fit = self.model.optimize(**args)
File "/home/coder/venv/lib/python3.10/site-packages/cmdstanpy/model.py", line 731, in optimize
raise RuntimeError(msg)
RuntimeError: Error during optimization: console log output:

/home/coder/venv/lib/python3.10/site-packages/prophet/stan_model/prophet_model.bin: error while loading shared libraries: libtbb.so.2: cannot open shared object file: No such file or directory
(venv) [coder@prophet-1-1-1]$ find /home/coder/venv/ -name libtbb.so.2
/home/coder/venv/lib/python3.10/site-packages/prophet/stan_model/cmdstan-2.26.1/stan/lib/stan_math/lib/tbb/libtbb.so.2
```
Steps I use to reproduce this are:
```
# create venv
pip download prophet-1.1.1 --no-binary prophet
pip wheel prophet-1.1.1.tar.gz # downloaded sdist - result of the prev command
pip install prophet-1.1.1-cp310-cp310-linux_x86_64.whl # locally built wheel - result of the prev command

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.