Hi, I am new to stan and I am using a Mac OS Catalina 10.15.5 and Spyder 3.3.6 and python 3.7.0.
I have found that whenever I have a bug in my model_code, my Spyder kernel will restart without showing any info. This has been a nightmare to debug.
It actually worked on a linux server for me, I think it might be related to my gcc setup? So here is my gcc info:
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1188.8.131.52)
Thread model: posix
Before I run the code pystan.StanModel(model_code=...)
And after I run the code pystan.StanModel(model_code=…) and I know it contains some error, I have my kernel all cleaned up
@ahartikainen is the go-to Python person, but he has been quite busy lately…
Anyway, the problem might be that with PyStan the model AFAIK runs tightly coupled with the python process and this can result in all sorts of trouble. You may want to check if using CmdStanPy instead resolves the problem.