Cmdstan could not find the tbb.dll in .cmdstan?

I tried to run python script using cmdstan which was installed by cmdstanpy.install_cmdstan() and have this error info:

There are no locator input points: _ZNSt15_exception_ptr13exception_ptr10_M_releaseEv In the dynamic link library:C:\Users\sky\.cmdstan\cmdstan-2.36.0\stan\lib\stan_math\lib\tbb\tbb.dll

I guess it is likely causd by the confront between the tbb.dll in cmdstan and the origrinal tbb.dll of windows? or the mingw64 installed on windows? I checked environment variable on windows. it seems no tbb.dll filename there.

This is probably a good hunch, but it is important to note that Windows does not originally have a tbb.dll, if it’s there it is because some other program put it there.

In a command prompt can you run where.exe tbb.dll and share the output?

Do you have Visual Studio installed? My wife ran into this issue as well where she had VS installed and that tbb.dll seemed to “override” the cmdstan one. We remedied this by finding the tbb.dll file from cmdstanr (which I think was in the install directory), and copy-pasting it into whatever directories your model.exe files are in. Hacky fix, but seemed to work.

1 Like

This may seem hacky, but is actually a recommended way to avoid this problem on Windows. Depending on where the other copy is installed, it’s possible that the only place with higher priority will be the model’s own directory