My system had been working perfectly but I am now getting the following error fitting a
brms model (a straightforward linear regression with random effects):
Error in unserialize(socklist[[n]]) : error reading from connection
So I thought I would switch to
backend = cmdstanr, but that results in the following error when fitting the model:
error: PCH file uses an older PCH format that is no longer supported 1 error generated. make: *** [/var/folders/zs/pfyxhxss4qj914sl77gw12pw0000gn/T/RtmprYGTwR/model-e0501cc26e51] Error 1 Error: An error occured during compilation! See the message above for more information. In addition: Warning message: CmdStan's precompiled header (PCH) files may need to be rebuilt. If your model failed to compile please run rebuild_cmdstan(). If the issue persists please open a bug report.
I then ran, as suggested
but the error persists.
I don’t know if the socklist error in
rstan and the PCH error in
cmdstanr are related and I am pretty mystified as to why these errors have suddenly appeared. Any suggestions for a fix would be gratefully received.
Operating System: macOS 11.5.2