Release v0.5.0b17
v0.5.0b17 - Dependency Fix
Bug Fix
Fixed a critical dependency issue where scipy 1.17.0 breaks the import chain with MNE.
Details
With the latest release of scipy (v1.17.0), the sph_harm function was removed from scipy.special. The MNE version that HyPyP depends on requires this function but does not pin the scipy version in its dependencies.
Error that was occurring:
ImportError: cannot import name 'sph_harm' from 'scipy.special'
Solution:
- Added version constraint
scipy = ">=1.0.0,<1.17.0"in pyproject.toml - Updated poetry.lock accordingly
This is a temporary fix until the upstream MNE package updates its scipy compatibility.
Credits
Thanks to @patricefortin for identifying and fixing this issue (#243)
🔗 References
- PR: #243
- Related scipy commit: scipy/scipy@39b8d4d