stan-dev / pystan

PyStan, a Python interface to Stan, a platform for statistical modeling. Documentation: https://pystan.readthedocs.io
ISC License
342 stars 59 forks source link

seg fault with pystan v2.19.1.1 #383

Closed cdeepali closed 1 year ago

cdeepali commented 1 year ago

Describe the bug

The script https://github.com/AnacondaRecipes/pystan-feedstock/blob/master/recipe/run_test.py with pystan v2.19.1.1 fails with segmentation fault.

python run_test.py
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_0fe254f3c524d4153537de9712f3f235 NOW.
Segmentation fault (core dumped)

Describe your system

Steps/Code to Reproduce

install pystan v2.19.1.1 execute script https://github.com/AnacondaRecipes/pystan-feedstock/blob/master/recipe/run_test.py

cdeepali commented 1 year ago

Found that this segfault is seen with latest version of scipy.

with scipy v1.9.3 the test example works.

ahartikainen commented 1 year ago

PyStan 2.x is not supported anymore, so there are multiple reasons why it starts to fail.

Good you find a solution.