Skip to content

Release v0.5.0b17

Choose a tag to compare

@Ramdam17 Ramdam17 released this 27 Jan 03:05
· 38 commits to master since this release

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