Cannot use Prophet UDF with kapacitor
Python 3 with Anaconda.
Kapacitor version: 1.5.3
Note: I can use pystan in Jupyter Notebook (Anaconda 3)
Kapacitor.conf:
[udf.functions.prophet]
prog = “C:\Users\USER1\AppData\Local\Continuum\anaconda3\python.exe”
args = [“-u”, “C:\temp\kapacitor_udf\kapacitor\udf\agent\examples\prophet\prophet.py”]
timeout = “60s”
[udf.functions.prophet.env]
PYTHONPATH = “C:\temp\kapacitor_udf\kapacitor\udf\agent\py”
Error from Kapacitor log:
ts=2019-11-22T17:04:13.005+05:30 lvl=debug msg="opening service" source=srv service=*sideload.Service
ts=2019-11-22T17:04:13.005+05:30 lvl=debug msg="opened service" source=srv service=*sideload.Service
ts=2019-11-22T17:04:13.005+05:30 lvl=debug msg="opening service" source=srv service=*udf.Service
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text="Traceback (most recent call last):"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" File \"C:\\temp\\kapacitor_udf\\kapacitor\\udf\\agent\\examples\\prophet\\prophet.py\", line 7, in <module>"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" from fbprophet import Prophet"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" File \"C:\\Users\\USER1\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\fbprophet\\__init__.py\", line 8, in <module>"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" from fbprophet.forecaster import Prophet"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" File \"C:\\Users\\USER1\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\fbprophet\\forecaster.py\", line 17, in <module>"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" import pystan # noqa F401"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" File \"C:\\Users\\USER1\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\pystan\\__init__.py\", line 9, in <module>"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" from pystan.api import stanc, stan"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" File \"C:\\Users\\USER1\\AppData\\Local\\Continuum\\anaconda3\\lib\\site-packages\\pystan\\api.py\", line 13, in <module>"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text=" import pystan._api # stanc wrapper"
ts=2019-11-22T17:04:14.657+05:30 lvl=info msg="UDF log" service=udf text="ImportError: DLL load failed: The specified module could not be found."