FileNotFoundError: Cannot find DGL C++ sparse library 9/11

Hello, when I try to use the sparse matrix feature I see this error:

‘FileNotFoundError: Cannot find DGL C++ sparse library at /Users/username/projectfolder/venv/lib/python3.9/site-packages/dgl/dgl_sparse/libdgl_sparse_pytorch_2.0.1.dylib’

I saw many similar questions related to the PyTorch version, but I have the recommended version from previous questions:

  • DGL Version: 1.1.2
  • Backend Library & Version: pytorch 2.0.1
  • OS: Mac OS 12.6.3
  • How you installed DGL (conda, pip, source): pip
  • Python version: 3.9.13

confirmed. will update it ASAP.

pip and conda packages are updated. Could you try it out?

After uninstalling and re-installing I can confirm this works now, thanks! :smile: