Closed jalencato closed 4 days ago
NumPy 2.0 is the latest release and may have some incompatibilities with the NumPy 1.x we used previously. We are currently looking into it. Downgrading NumPy to version 1.x can resolve this issue.
Just FYI: The compatible problem does not appear when using DGL on torch 2.3. It always happens for torch version <= 2.2
Well PyTorch 2.3.0 is needed to support NumPy 2 : https://github.com/pytorch/pytorch/issues/107302
Earlier PyTorch versions are incompatible with NumPy 2
So it sounds like users just need to upgrade PyTorch and this is not actually a DGL problem
Edit: Rephrase to further clarify
@jakirkham Thanks for your info. we'll look into and confirm.
As we discussed https://github.com/dmlc/dgl/pull/7479#issuecomment-2199158291, it's user's responsibility to either downgrade numpy or upgrade torch. DGL itself does have such requirement.
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
import dgl
Error:
Expected behavior
Environment
conda
,pip
, source): pipAdditional context