scikit-matter
scikit-matter copied to clipboard
from skmatter.sample_selection import DirectionalConvexHull is failing
I had a notebook in the atomistic-cookbook that does from skmatter.sample_selection import DirectionalConvexHull
And this command is failing with the error:
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
from skmatter.sample_selection import DirectionalConvexHull
File "/home/tisi/miniconda3/envs/prova-skmatter/lib/python3.13/site-packages/skmatter/sample_selection/__init__.py", line 6, in <module>
from ._base import (
...<5 lines>...
)
File "/home/tisi/miniconda3/envs/prova-skmatter/lib/python3.13/site-packages/skmatter/sample_selection/_base.py", line 9, in <module>
from scipy.interpolate.interpnd import _ndim_coords_from_arrays
ImportError: cannot import name '_ndim_coords_from_arrays' from 'scipy.interpolate.interpnd' (/home/tisi/miniconda3/envs/prova-skmatter/lib/python3.13/site-packages/scipy/interpolate/interpnd.py)
I also tested creating a new environment pip installing skmatter and running from skmatter.sample_selection import DirectionalConvexHull
on a python terminal and I get the same error.
- I tested with python 3.13 (and 3.11)
- scipy 1.15.1 ( which is automatically downloaded by pip when installing skmatter)
- numpy 2.2.2 (again automatically downloaded by pip when installing skmatter)