@bob-carpenter I saw you commented on the ArviZ thread, but given you are using SciPy directly you need to update your import from from scipy.signal import gaussian to scipy.signal.windows import gaussian as @jessegrabowski mentioned. The import you are trying to use stopped being valid in SciPy 1.13.
This same update was what we needed to do in ArviZ in order to support SciPy>=1.13. Consequently, you’d still get that error if you tried to use an old ArviZ release with latest SciPy, but it doesn’t look like that is your case.