FileNotFoundError: Cannot find DGL C++ graphbolt library

Hi,I was just trying graphbolt ,An error occurred.

FileNotFoundError: Cannot find DGL C++ graphbolt library at /Users/mikusugar/miniforge3/envs/dgl/lib/python3.10/site-packages/dgl/graphbolt/libgraphbolt_pytorch_2.2.1.dylib
  • DGL Version: 2.0.0
  • Backend Library & Version: pytorch 2.2.1
  • OS: macOS 14.4 23E214 arm64
  • How you installed DGL (conda, pip, source): pip
  • Python version: 3.10.13
  • CUDA/cuDNN version: none

I went to this directory (ā€¦/site-packages/dgl/graphbolt/) and found that the latest version file is 2.1.2. I solved this problem by downgrading the torch version to 2.1.2.

DGL 2.0.0 does not support torch 2.2.x. DGL 2.0.0 supports up to torch 2.1.x only. Please install DGL 2.1.0 instead.

1 Like

Iā€™m facing the same problem using torch==2.1.0a0+29c30b1 which is built-in in Nvidia official pytorch image: 23.08.
I installed dgl using pip install dgl -f https://data.dgl.ai/wheels/cu121/repo.html.

I have DGL v2.1.0 and pytorch v2.2.2, but still facing the same error!
Where can I check each version of DGL supports which pytorch?

torch 2.2.2 is not supported yet. DGL 2.1.0 supports up to torch 2.2.1.

No such web page is available for now. Instead you could refer to the latest release note.