Traceback (most recent call last):


 "/home/jhfreeman/.pyenv/versions/3.7.4/envs/HA/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform

await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)


 "/home/jhfreeman/.pyenv/versions/3.7.4/lib/python3.7/asyncio/tasks.py", line 442, in wait_for

return fut.result()


 "/home/jhfreeman/.pyenv/versions/3.7.4/lib/python3.7/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/home/jhfreeman/.pyenv/versions/3.7.4/envs/HA/lib/python3.7/site-packages/homeassistant/components/flume/sensor.py", line 44, in setup_platform

flume_devices = FlumeDeviceList(username, password, client_id, client_secret)


 "/home/jhfreeman/.pyenv/versions/3.7.4/envs/HA/lib/python3.7/site-packages/pyflume/__init__.py", line 152, in __init__

client_secret


 "/home/jhfreeman/.pyenv/versions/3.7.4/envs/HA/lib/python3.7/site-packages/pyflume/__init__.py", line 50, in __init__

self.read_token_file()


 "/home/jhfreeman/.pyenv/versions/3.7.4/envs/HA/lib/python3.7/site-packages/pyflume/__init__.py", line 134, in read_token_file

self.fetch_token()


 "/home/jhfreeman/.pyenv/versions/3.7.4/envs/HA/lib/python3.7/site-packages/pyflume/__init__.py", line 77, in fetch_token

self.write_token_file()


 "/home/jhfreeman/.pyenv/versions/3.7.4/envs/HA/lib/python3.7/site-packages/pyflume/__init__.py", line 122, in write_token_file

with open(TOKEN_FILE, 'w') as token_file:
PermissionError: [Errno 13] Permission denied: 'flume_token'

Traceback (most recent call last):


 "get_predictions.py", line 283, in <module>

m.fit(df)


 "/home/arvin/anaconda3/envs/devenv/lib/python3.5/site-packages/fbprophet-0.1.1-py3.5.egg/fbprophet/forecaster.py", line 536, in fit

params = model.optimizing(dat, init=stan_init, iter=1e4, **kwargs)


 "/home/user/anaconda3/envs/devenv/lib/python3.5/site-packages/pystan/model.py", line 510, in optimizing

ret, sample = fit._call_sampler(stan_args)


 "stanfit4anon_model_7a788197ac3493030b72020b9ffdbe7d_8714900159976324877.pyx", line 814, in stanfit4anon_model_7a788197ac3493030b72020b9ffdbe7d_8714900159976324877.StanFit4Model._call_sampler (/tmp/tmp6in6jxib/stanfit4anon_model_7a788197ac3493030b72020b9ffdbe7d_8714900159976324877.cpp:16904)


 "stanfit4anon_model_7a788197ac3493030b72020b9ffdbe7d_8714900159976324877.pyx", line 401, in stanfit4anon_model_7a788197ac3493030b72020b9ffdbe7d_8714900159976324877._call_sampler (/tmp/tmp6in6jxib/stanfit4anon_model_7a788197ac3493030b72020b9ffdbe7d_8714900159976324877.cpp:8973)
RuntimeError: Something went wrong after call_sampler.
