cmdstanpy: Compilation errors of model with `cmdstanpy`
Summary:
Please provide a short couple sentence summary. I am trying to install and run a simple model as part of StanCon2019: https://github.com/lauken13/Beginners_Bayes_Workshop/blob/master/stan_programs/simple_poisson_regression.stan
Description:
Describe the issue as clearly as possible. I tried to compile the model:
from pathlib import Path
from cmdstanpy import cmdstan_path, Model, StanFit
model_path = Path('stan_programs/simple_poisson_regression.stan')
m = Model(model_path)
m.compile()
Gives me the following error message
INFO:cmdstanpy:compiling c++
ERROR:cmdstanpy:make cmd failed ERROR
error: PCH file uses a newer PCH format that cannot be read
1 error generated.
make: *** [/Users/tommylees/github/stancon_2019/Beginners_Bayes_Workshop/stan_programs/simple_poisson_regression] Error 1
ERROR:cmdstanpy:model compilation failed
Additional Information:
Provide any additional information here.
I installed cmdstan using the install_cmdstan option.
I also have a working installation of Stan on my R environment which allows me to compile the model. This might be interfering with the cmdstan installation
Current Version:
In [23]: cmdstanpy.__version__
Out[23]: '0.4.2'
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (7 by maintainers)
Fixed with a new installation / new
conda envThanks @ahartikainen for all your help!!!
Ok, then there is a question how to force the correct compiler.
Can you set
make/localfor specific CC and CXX.