Closed teddygroves closed 6 months ago
I think this might be because of GitHub updating their windows runners to a newer MinGW a while back (when was the last time you successfully ran this action?)
If so, a fix is in the next version: https://github.com/stan-dev/math/pull/2948. For now in cmdstanpy we are manually setting some extra flags in our windows portion of the action, which you could try, or try “—version git:develop” in the install_cmdstan call
Thanks a lot! Just adding --version git:develop
didn't work (see run here) but copying the TBB_CXXFLAGS = "-D_UCRT"
lines from cmdstanpy's github actions as well did.
Adding git:develop worked when I forked your repo to try debugging: https://github.com/WardBrian/cmdstanpy-windows/actions/runs/7265449477/job/19795148846
Weird!
Yeah I don't understand why this action failed. Maybe something was cached since I was running very similar actions in quick succession?
Anyway I guess the main problem is solved!
Summary:
I maintain a Python package that depends on cmdstan via cmdstanpy, and it hit this error when running a github action on windows.
Description:
The action that I made installs cmdstan on windows in a fresh environment with the command
install cmdstan --compiler
and runs a simple stan model.I think this is the most important bit of the error message (line 800):
The same action went through fine on the ubuntu-latest platform, so I think the problem might have something to do with how cmdstanpy installs cmdstan on windows.
To check that the problem wasn't something to do with the rest of the package, I created a new repository specifically to test this bug. The new repo contains only a bernoulli stan program and json data input copied from cmdstanpy, a script
script.py
with this code:and finally a github action with these lines:
Running this action led to a very similar error to the one I started with.
Additional Information:
Please let me know if you think this bug belongs more to cmdstan rather than cmdstanpy and I'll move it over!
Current Version:
cmdstan version: 2.33.1 cmdstanpy version: 1.2.0