AttributeError: 'StanModel' object has no attribute 'model_name'

I use pystan from fbprophet. Problem is with this line:
File “contrib/python/fbprophet/fbprophet/”, line 1116, in fit
stan_fit = model.sampling(**args)
File “contrib/python/pystan/pystan/”, line 581, in sampling
fit.model_name = self.model_name
AttributeError: ‘StanModel’ object has no attribute ‘model_name’
I’ve even customized fbprophet a little to avoid this problem:

setattr(model, 'model_name', 'anon_model')
stan_fit = model.sampling(**args)

, but sometimes problem still occurs
Dataset is under NDA.

  • Operating System: Ubuntu 18.04 (bionic)
  • Python Version: 3.8.6
  • PyStan Version:
  • Compiler/Toolkit: proprietary toolkit, not available externally

Can I just replace self.model_name with some constant value?

Any ideas, guys?

Any ideas why the model name is missing? Is that run under some special program that removes attributes?

I don’t think there are any problems with adding the model name manually.