-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Describe the bug
PHATE currently declares a dependency on numpy>=1.16.0, which allows installation alongside NumPy 2.x. However, PHATE appears to be incompatible with NumPy 2.x releases — it fails at runtime when used with these versions, even though installation completes without error.
To Reproduce
- Create a new environment in python 3.10 and install the latest NumPy:
pip install numpy
# installs numpy==2.2.6
- Install PHATE:
pip install phate
- Try to import or use PHATE:
import phate
Expected behavior
PHATE should work well.
Actual behavior
Show some error
Then, I install 1.x version NumPy:
pip uninstall -y numpy
pip install "numpy<2"
PHATE runs without issues.
System information:
Output of phate.__version__: '1.0.11'
Output of pd.show_versions():
Additional context
The issue does not trigger during installation (since the current requirement allows NumPy 2.x), but happends only at runtime.
A version check or dependency update would prevent confusion for users installing PHATE in new environments.