2 years ago
Am getting this error when running django app, it specifically fails on the package prophet.
Error during optimization! Command '/opt/venv/lib/python3.9/site-packages/prophet/stanmodel/prophetmodel.bin random seed=2146 data file=/tmp/tmputhqt8b/tkh8fbys.json init=/tmp/tmputhqt8b/9shnbzrv.json output file=/tmp/tmputhqt8b/prophetmodel3jg4gzwl/prophet_model-20240126092256.csv method=optimize algorithm=newton iter=10000' failed: console log output:
Any help will be really appreciated
5 Replies
2 years ago
09:22:56 - cmdstanpy - INFO - Chain [1] start processing
09:22:56 - cmdstanpy - INFO - Chain [1] done processing
09:22:56 - cmdstanpy - ERROR - Chain [1] error: error during processing Operation not permitted
Optimization terminated abnormally. Falling back to Newton.
09:22:56 - cmdstanpy - INFO - Chain [1] start processing
09:22:56 - cmdstanpy - INFO - Chain [1] done processing
09:22:56 - cmdstanpy - ERROR - Chain [1] error: error during processing Operation not permitted
Internal Server Error: /api/json/
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/prophet/models.py", line 121, in fit
self.stan_fit = self.model.optimize(**args)
File "/opt/venv/lib/python3.9/site-packages/cmdstanpy/model.py", line 696, in optimize
raise RuntimeError(msg)
RuntimeError: Error during optimization! Command '/opt/venv/lib/python3.9/site-packages/prophet/stanmodel/prophetmodel.bin random seed=56684 data file=/tmp/tmputhqt8b/plkxe0ym.json init=/tmp/tmputhqt8b/gynwkuyh.json output file=/tmp/tmputhqt8b/prophetmodelkn0binz0/prophet_model-20240126092256.csv method=optimize algorithm=lbfgs iter=10000' failed: console log output:
/opt/venv/lib/python3.9/site-packages/prophet/stanmodel/prophetmodel.bin: /lib/x8664-linux-gnu/libc.so.6: version `GLIBC2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in getresponse
response = wrappedcallback(request, *callbackargs, **callback_kwargs)
File "/app/api/views.py", line 150, in getjsondata
model.fit(data)
File "/opt/venv/lib/python3.9/site-packages/prophet/forecaster.py", line 1232, in fit
self.params = self.stanbackend.fit(staninit, dat, **kwargs)
File "/opt/venv/lib/python3.9/site-packages/prophet/models.py", line 128, in fit
self.stan_fit = self.model.optimize(**args)
File "/opt/venv/lib/python3.9/site-packages/cmdstanpy/model.py", line 696, in optimize
raise RuntimeError(msg)
RuntimeError: Error during optimization! Command '/opt/venv/lib/python3.9/site-packages/prophet/stanmodel/prophetmodel.bin random seed=2146 data file=/tmp/tmputhqt8b/tkh8fbys.json init=/tmp/tmputhqt8b/9shnbzrv.json output file=/tmp/tmputhqt8b/prophetmodel3jg4gzwl/prophet_model-20240126092256.csv method=optimize algorithm=newton iter=10000' failed: console log output:
/opt/venv/lib/python3.9/site-packages/prophet/stanmodel/prophetmodel.bin: /lib/x8664-linux-gnu/libc.so.6: version `GLIBC2.36' not found (required by /nix/store/xpxln7rqi3pq4m0xpnawhxb2gs0mn1s0-gcc-12.3.0-lib/lib/libstdc++.so.6)
2 years ago
ah the infamous 'GLIBC_2.36' not found error.
I'd recommend moving to a Dockerfile based build.
2 years ago
On railway still?
2 years ago
Do you have any tutorial on this?