Prophet lib dosn't work

I’m trying to use the prophet Lib, but when I tried to build, I have a error:

RuntimeError: Error during optimization! Command '/foundry/python_environment/lib/python3.12/site-packages/prophet/stan_model/prophet_model.bin random seed=62110 data file=/tmp/tmp0siopc4j/lhondb0z.json init=/tmp/tmp0siopc4j/nyk0h2cw.json output file=/tmp/tmp0siopc4j/prophet_modelnt98y5tn/prophet_model-20250825171808.csv method=optimize algorithm=lbfgs iter=10000' failed: console log output:

/foundry/python_environment/lib/python3.12/site-packages/prophet/stan_model/prophet_model.bin: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

And this is the explanation by AI:

‘‘‘Summary of the Issue:

The error indicates that the required shared library libstdc++.so.6 (a standard C++ runtime library) is missing from the environment where the Prophet library’s model optimization is being executed. This prevents the prophet_model.bin binary from running, causing the m.fit() call in your script (line 36 of examples.py) to fail.

Suggested Fix:

This issue can typically be resolved by ensuring that the missing shared library is installed in the underlying environment. However, since Foundry users do not have access to the environment configuration, this appears to be an internal issue.

You should reach out to Palantir support and request assistance in resolving the missing dependency issue (libstdc++.so.6) in the Python environment.

What you can try in the meantime:

If a custom Docker runtime is being used for your project, you might be able to install the missing library by adjusting the base image setup. Ensure that the library is included manually by adding the following to the Dockerfile (if applicable):

RUN apt-get update && apt-get install -y libstdc++6

If you cannot modify the environment yourself, please contact Palantir support to address this issue.

Relevant Code Hint:

The failure occurred specifically on this line in your code:

m.fit(df_all) # Line 36 in examples.py

Unfortunately, you cannot resolve this issue directly by modifying your Python code. It requires an update to the environment setup.

Source:

No direct links to Foundry documentation address shared library management in Python environments. Please consult Palantir support for assistance.
’’’

Does anyone know how I can solve and use the lib?

Did you add prophet from conda-forge or pypi? Can you post your meta.yaml?