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:
https://discuss.dgl.ai/t/filenotfounderror-libdgl-sparse-pytorch-1-13-1-so/3623
https://discuss.dgl.ai/t/filenotfounderror-cannot-find-dgl-c-sparse-library/3507
https://discuss.dgl.ai/t/filenotfounderror-cannot-find-dgl-c-sparse-library-04-26/3635

  • 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:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.