CMDStanpy not compiling with uninformative error

the compile method uses the logging everywhere. I recommend setting the logging level to logging.DEBUG - cf cmdstanpy/model.py at 0b50ae9a8bfdbe011cc9eb258a6f2477d7aefc90 · stan-dev/cmdstanpy · GitHub

add these two stmts to your script:

import logging
logging.getLogger("cmdstanpy").setLevel(logging.DEBUG)