Library not loaded: @rpath/libtbb.dylib
- Dominant language
- Python
- Stars
- 20.4k
- Forks
- 4.6k
- Avg merge
- 19h 52m
- Merged PRs (30d)
- 1
Description
Fresh install of python 3.10.9 or 3.8.16 when I try and run fit on this sample code on a mac M1 pro
```
import pandas as pd
from prophet import Prophet
df = pd.read_csv('https://raw.githubusercontent.com/facebook/prophet/main/examples/example_wp_log_peyton_manning.csv')
m = Prophet()
m.fit(df)
```
I get the following error.
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
File [~/anaconda3/lib/python3.10/site-packages/prophet/models.py:90](https://file+.vscode-resource.vscode-cdn.net/Users/rseal/Downloads/~/anaconda3/lib/python3.10/site-packages/prophet/models.py:90), in CmdStanPyBackend.fit(self, stan_init, stan_data, **kwargs)
89 try:
---> 90 self.stan_fit = self.model.optimize(**args)
91 except RuntimeError as e:
92 # Fall back on Newton
File [~/anaconda3/lib/python3.10/site-packages/cmdstanpy/model.py:738](https://file+.vscode-resource.vscode-cdn.net/Users/rseal/Downloads/~/anaconda3/lib/python3.10/site-packages/cmdstanpy/model.py:738), in CmdStanModel.optimize(self, data, seed, inits, output_dir, sig_figs, save_profile, algorithm, init_alpha, tol_obj, tol_rel_obj, tol_grad, tol_rel_grad, tol_param, history_size, iter, save_iterations, require_converged, show_console, refresh, time_fmt, timeout)
737 else:
--> 738 raise RuntimeError(msg)
739 mle = CmdStanMLE(runset)
RuntimeError: Error during optimization! Command '/Users/rseal/anaconda3/lib/python3.10/site-packages/prophet/stan_model/prophet_model.bin random seed=98371 data file=/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/tmpgip24mcd/s2zlmec9.json init=/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/tmpgip24mcd/cibbva25.json output file=/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/tmpgip24mcd/prophet_modell2f4n7ts/prophet_model-20230606222132.csv method=optimize algorithm=lbfgs iter=10000' failed: console log output:
dyld[13697]: Library not loaded: @rpath/libtbb.dylib
Referenced from: /Users/rseal/anaconda3/lib/python3.10/site-packages/prophet/stan_model/prophet_model.bin
Reason: tried: '/private/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/pip-install-zqlq1jgh/prophet_91fa52550c8644a89630c690263e96c1/build/lib.macosx-11.1-arm64-cpython-310/prophet/stan_model/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/pip-install-zqlq1jgh/prophet_91fa52550c8644a89630c690263e96c1/build/lib.macosx-11.1-arm64-cpython-310/prophet/stan_model/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/private/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/pip-install-zqlq1jgh/prophet_91fa52550c8644a89630c690263e96c1/build/lib.macosx-11.1-arm64-cpython-310/prophet/stan_model/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/pip-install-zqlq1jgh/prophet_91fa52550c8644a89630c690263e96c1/build/lib.macosx-11.1-arm64-cpython-310/prophet/stan_model/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/private/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/pip-install-zqlq1jgh/prophet_91fa52550c8644a89630c690263e96c1/build/lib.macosx-11.1-arm64-cpython-310/prophet/stan_model/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/pip-install-zqlq1jgh/prophet_91fa52550c8644a89630c690263e96c1/build/lib.macosx-11.1-arm64-cpython-310/prophet/stan_model/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/private/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/pip-install-zqlq1jgh/prophet_91fa52550c8644a89630c690263e96c1/build/lib.macosx-11.1-arm64-cpython-310/prophet/stan_model/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/xj/c0hn272x0pq0d08pryqvm2sr0000gp/T/pip-install-zqlq1jgh/prophet_91fa52550c8644a89630c690263e96c1/build/lib.macosx-11.1-arm64-cpython-310/prophet/stan_model/cmdstan-2.31.0/stan/lib/stan_math/lib/tbb/libtbb.dylib' (no such file), '/usr/local/lib/libtbb.dylib' (no such file), '/usr/lib/libtbb.dylib' (no such file, not in dyld cache)
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
Cell In[1], line 6
4 df.head()
Contributor guide
Assessment
This issue has not been assessed yet.