Closed HashemiScience closed 4 years ago
Good morning!
Let's see. This looks like it is could be an issue with possible spaces in your paths, see https://github.com/brian-lau/MatlabStan/issues/17. Cmdstan and all other dependents need to be a location where there are no spaces in the path. Can you double check that is the case?
Good luck! Peter
Thanks for the quick reply, Peter. There are no spaces, and cmdstan works fine in the command line. I am following all the different leads in those threads, hopefully there's an answer in there. I'll report back if I've exhausted them all and it's still not fixed.
Ali
OK -- I followed the bug and it seems to be a problem with StanModel in the MatlabStan code not pulling the proper stanc version.
line 849-850 in StanModel.m:
str = regexp(p.stdout{1},'\ ','split'); ver = cellfun(@str2num,regexp(str{3},'\.','split'));
was not behaving since str{3} was {'(Unix)'}
when it should have been a numeric version (i.e., 2.21.0). As a quick fix, I've hard coded that version in and everything works well.
Thank you for your help and fuiding me to a solution!
Cheers, Ali
Great! I'm glad it worked out. Let me know if you have any other questions 👍
Peter
Hi Peter,
First, thanks for the toolbox -- we're excited to use it! I have tried running the toolbox and recieved the error below.
It's likely that it is simply a version issue since my cmdstan is higher than what you've tested on according to your documentation, but I am wondering if you have tested it on cmdstan 2.21.0 and recieve a similar error. I have to get our IT department to downgrade our cmdstan, so before I do that, I am wondering if you've already tested newer cmdstan's.
I get this bug when I try to analyze any dataset:
I am using: