arviz-devs / arviz

Exploratory analysis of Bayesian models with Python
https://python.arviz.org
Apache License 2.0
1.59k stars 395 forks source link

Failing with SciPy 1.13.0 #2336

Closed Gazzzzyy closed 6 months ago

Gazzzzyy commented 6 months ago

Describe the bug Builds are failing when using SciPy >=1.13.0. Looks like the endpoint for gaussianhas been removed from scipy.signal, which breaks arviz/stats/density_utils.py

To Reproduce Update local dependencies to use SciPy == 1.13.0.

Expected behavior The code to run.

Additional context File "C:\---\.venv\lib\site-packages\arviz\stats\density_utils.py", line 8, in from scipy.signal import convolve, convolve2d, gaussian # pylint: disable=no-name-in-module ImportError: cannot import name 'gaussian' from 'scipy.signal' (C:\---\.venv\lib\site-packages\scipy\signal\__init__.py)

OriolAbril commented 6 months ago

Until we can make a new release you'll have to either downgrade scipy or install the development version of arviz from github (where this has been fixed already). Instructions for the 2nd option: https://python.arviz.org/en/stable/getting_started/Installation.html#development

Gazzzzyy commented 6 months ago

Thanks for the response. I've already downgraded SciPy for the time being. Will lookout for when a new release available